Commit Graph

62 Commits

Author SHA1 Message Date
dmex e7fffcc8ee Improve UI theming and search control behavior
This changeset overhauls several UI infrastructure paths: it adds richer column drag/drop visuals, expands the search box with fuzzy matching and match-range APIs, and refactors theme handling (including Explorer-style palette support, buffered/non-client paint cleanup, and new theme file utilities). It also hardens core behavior with many reliability fixes, such as bounded HTTP download buffering, safer process/service enumeration and handle ownership updates, improved window/context lifecycle handling, DPI/layout fixes, and broader consistency updates across dialog/list-view drawing and helper APIs.
2026-10-02 13:27:30 +10:00
Johnny Shaw a7dea66693 thrdlist fix dangling pointer 2026-08-31 01:01:45 -06:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex b546c94309 Add extended highlighting and process monitor flags
Introduce many new highlighting settings and UI grouping for Options -> Highlighting, including thread, network, environment, token, memory and module color options. Add menu flags to highlight native/mapped modules and several thread wait types; wire them into dialogs and list handling. Rename and use cached process monitor settings (PhCsEnableProcessMonitor / PhCsProcessMonitorLookback / PhCsProcessMonitorCacheLimit) and update related checks. Fix TreeNew invalidation/sorting behavior to avoid unconditional rebuilds and ensure proper node invalidation. Populate default settings and cached getters for the new options.
2026-04-12 11:50:30 +10:00
dmex 7ff04762e2 Fix bounds, safety checks, and sort types
- Add SysInfoMinimumGraphHeight and SysInfoScrollEnabled settings.
- Remove redundant TreeNew_NodesStructured calls to avoid extra re-structuring.
- Fix off-by-one checks on hybridProcessorTypeList (use >=).
- Add null/empty checks before indexing directory lists in CLR metadata handling.
- Use PhShowStatusHR and correct failure logic when CLR table enumeration fails.
- Replace mutable PVOID sortFunctions arrays with CONST _CoreCrtSecureSearchSortCompareFunction and use the correct function pointer type for sortFunction in several peview tree callbacks.
- Replace SetWindowLongPtr reset with PhSetWindowProcedure for prop sheet cleanup.
- Change dwCountElems type to ULONG in pdb printing.
2026-04-11 00:57:41 +10:00
dmex becdfa570f Use fullyInvalidated flag
pass &fullyInvalidated into PH_TICK_SH_STATE_TN instead of NULL. This ensures tree rebuilds for non-default sort orders correctly signal a full invalidation for state/highlighting updates.
2026-03-29 18:51:23 +11:00
ge0rdi e4e28c91d4 Fix page/IO priority in Threads tab (#2847) 2026-03-19 15:53:24 +11:00
dmex 0e270a053a Improve parameter name, type-safety, and SAL annotation consistency 2026-03-07 01:24:03 +11:00
Johnny Shaw 3d68d8c577 thrdlist show kernel stack usage 2026-02-01 17:45:07 -07:00
dmex 5f4296243c Update thrdlist.c 2025-12-26 23:31:38 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex d6fa11f143 Update SAL annotations and add stack allocations for some types 2025-10-08 15:43:41 +11:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
Johnny Shaw 0fa1b4e2ce improve thread priority columns and handling 2025-07-21 00:20:20 -06:00
diversenok f9c238893e Add thread RPC usage column (#2606)
* Add thread RPC usage column

* Fix order mismatch

---------

Co-authored-by: dmex <dmex04@gmail.com>
Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2025-06-29 08:50:11 -06:00
diversenok 0ee5db976a Improve apartment detection (#2590) 2025-06-08 23:54:38 +10:00
dmex de1f8ae674 Update SAL Annotations 2025-06-05 08:29:55 +10:00
dmex 41ff6239c4 Add extra thread suspended highlighting 2025-05-15 10:08:18 +10:00
diversenok 90b15a280e Rework the COM apartment column (#2529) 2025-05-01 09:19:00 +10:00
dmex 7b0320de00 Make strings CONST 2025-04-20 08:44:08 +10:00
diversenok 623edf67c6 Improve thread apartment querying (#2507)
* Improve thread apartment querying

* Fix driver build

---------

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2025-04-12 19:16:12 -06:00
Johnny Shaw 62fcc1e7c9 group aware proc/thrd item affinity 2025-02-27 20:12:27 -07:00
dmex 1b583f40fb Update default thread columns 2025-02-11 09:19:07 +11:00
dmex 4eab430bca Add separate thread startaddress for native #2406 2025-01-30 05:28:13 +11:00
dmex 4f03b154f7 Reduce memory usage for threads window 2025-01-26 08:22:19 +11:00
dmex ab6986606b Update to latest SDK 2024-12-08 08:03:23 +11:00
dmex b5c8ece612 Tidy up 2024-11-30 06:10:41 +11:00
ge0rdi 8255bb904e Few improvements (#2257)
* fix Ctrl+K (search box) handling

- tree view didn't pass keypresses to parent window so it was not
  possible to handle the keyboard combo
- some plugins didn't handle Ctrl+K at all

Fixes #2241

* treenew handle Ctrl+A in common code

* searchbox pressing escape will abandon search

Current search is abandoned and focus is returned to window that
previously had it, instead of closing whole dialog.

* fixup! searchbox pressing escape will abandon search

* Update SystemInformer/searchbox.c

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>

* Update SystemInformer/searchbox.c

---------

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2024-10-29 19:04:04 -06:00
Johnny Shaw c0b8a52cac improve cpu relative 2024-10-26 14:13:53 -06:00
Johnny Shaw 51b95cfcaa precision limit 2024-10-26 11:06:50 -06:00
dmex 47779f2c6e Add PhExpandAllThreadNodes, PhInvalidateAllThreadNodes 2024-09-11 08:24:50 +10:00
dmex 04074359de Update thrdlist.c 2024-09-09 15:11:03 +10:00
dmex de6d1c9c11 Update to latest SDK 2024-09-09 07:33:45 +10:00
dmex 4721d35cfc Add single type formatting 2024-09-09 05:32:49 +10:00
Johnny Shaw 8133d3e7f1 hex pid/tid search fixup 2024-06-22 21:45:37 -06:00
dmex 1375429a90 Update to latest SDK 2024-06-23 05:49:26 +10:00
ge0rdi b23be229f0 Add "Power throttling" column to Threads tab (#1984) 2024-02-22 03:20:53 +11:00
Johnny Shaw f557d9347b add linux subsystem PID/TID columns 2023-08-22 12:51:19 -06:00
dmex ac6120311f Split LxssThreadId and ThreadId 2023-08-10 17:49:38 +10:00
dmex 449dfca40e Update types to PH_STRINGREF 2023-08-07 11:22:18 +10:00
dmex c283375e52 Force constant for data objects or variables not modifiable 2023-07-06 03:40:01 +10:00
dmex 28800f4401 static_assert sorting callbacks to catch missing columns 2023-06-21 11:15:36 +10:00
dmex 23f17725f3 Improve PhCustomDrawTreeTimeLine 2023-06-21 10:30:28 +10:00
Johnny Shaw 2c15c0d091 kph wsl support 2023-05-04 23:32:14 -06:00
Johnny Shaw c2c18fdb01 kph query thread I/O counters 2023-05-04 23:32:13 -06:00
dmex 03c59d266e Remove whitespace 2023-04-26 10:27:13 +10:00
dmex 4e869ccca6 Update thrdlist headers 2023-04-14 20:10:13 +10:00
dmex d6e4de3e5b Update and improve thread sorting 2023-04-14 10:53:12 +10:00
dmex 2f042c83e2 Add PhOpenThreadToken 2023-03-15 11:08:30 +11:00
dmex c0e0db20f0 Fix thread fiber column text align 2023-02-10 01:37:05 +11:00