Commit Graph

456 Commits

Author SHA1 Message Date
dmex aa965164a2 Add PhEnableHighResolution and rename setting 2026-05-05 21:36:06 +10:00
dmex e6b35af568 Update handle provider, Add async handle query and fix threading issues
Introduce an asynchronous handle query pipeline and UI improvements for handle resolution. Added query data structures and a stage-1 worker (PhpHandleQueryStage1Worker), a SLIST-based QueryListHead on providers, queueing (PhpQueueHandleQueryStage1), flushing/clearing (PhpFlushHandleQueryData / PhpClearHandleQueryData) and helpers to fill/cleanup results. Handle items gain NameResolved and JustProcessed fields; names/type info and file-sharing flags are resolved asynchronously and applied without blocking the main enumeration.

UI: show "Resolving...." for name cells while resolution is pending and only hide "unnamed" handles when NameResolved is true. Added a new menu item to toggle handle snapshots. Also clear various cached string refs when updating handle nodes.

Other changes: replaced type-name sort with a numeric compare on TypeIndex, refactored hashset add/remove/reference helpers (PhpLookupHandleItem, PhpAddHandleItem, PhpRemoveHandleItem, PhReferenceHandleItem), and wired queuing of stage-1 queries after new handle detection. These changes improve responsiveness and avoid long synchronous queries during handle enumeration.
2026-05-05 20:38:38 +10:00
Johnny Shaw fc46623c5f add client id headers 2026-05-03 19:12:59 -06:00
dmex 9467d5f646 Improve DPI handling, icon scaling, metrics (#2894) 2026-05-02 09:13:06 +10:00
dmex a6443d07c0 Remove global PhSystemDpi, PhSmallIconSize, PhLargeIconSize
Eliminate the main-window-DPI globals that bleed across dialogs on
secondary monitors. Window-aware code now passes its own DPI:

- Delete PhSystemDpi, PhSmallIconSize, PhLargeIconSize and
  PhGuiSupportUpdateSystemMetrics; remove the mainwnd.c invocation
  on WM_DPICHANGED.
- PhGetApplicationIcon and PhGetStockApplicationIcon now require a
  WindowDpi parameter; PhGetApplicationIconEx is folded into
  PhGetApplicationIcon. PhGetStockApplicationIcon keeps the shared
  icon contract via a 4-slot DPI-keyed cache so multiple monitors
  coexist without thrash.
- All ~50 callers updated to source DPI from their owning window
  (PhGetWindowDpi for hwnd-bearing call sites; PhGetTaskbarDpi for
  the tray icon; PhGetSystemDpi for window-class registration and
  parentless task dialogs).
- PhSetApplicationWindowIcon now thin-wraps PhSetApplicationWindowIconEx
  with PhGetWindowDpi(hwnd), so the 63 legacy call sites get
  per-window-DPI icons without per-site edits.
- srvprv.c and mainwnd.c read PhProcessImageListWindowDpi instead
  of PhSystemDpi/PhSmallIconSize.X for service and process icons.
2026-04-26 22:49:05 +10:00
dmex a8265d962f Add extended energy statistics and samples 2026-04-23 15:22:24 +10:00
dmex 777b033f01 Update phsettings.h 2026-04-23 13:53:34 +10:00
dmex 796bbd9cce Update memsrch.h 2026-04-23 11:23:13 +10:00
Johnny Shaw f051236b7a informer use context capture 2026-04-18 00:05:25 -06: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 35ada03a36 Add freeze/thaw thread menu 2026-04-12 11:13:39 +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 11567a683f Add horizontal scrollbar to sysinfo window #659 2026-04-11 00:48:37 +10:00
dmex fe00113a15 Rename release channel APIs to Build variant 2026-04-08 09:27:44 +10:00
dmex 8aa6a340e2 Add new native API declarations (process IO/VM counters, basic process enumeration helpers, mutant/event APIs) to phnative.h, Rename build version APIs and add native APIs 2026-04-08 05:27:21 +10:00
dmex faae10f0b9 Add Username column to service tree list 2026-04-03 06:04:22 +11:00
Johnny Shaw 6a75d7ff1c appsup fix build 2026-04-01 20:37:25 -06:00
dmex 34016e27d9 Apply SAL annotations fixes and add annotations 2026-04-01 12:11:37 +11:00
dmex bad5e393b5 Add PhGetPhVersionDateTime 2026-03-31 12:49:56 +11:00
Johnny Shaw 208b3e176d informer show cross-process activity 2026-03-29 20:16:05 -06:00
Johnny Shaw cde7a14478 process monitor window 2026-03-29 19:43:47 -06:00
dmex a396bff887 Add min,max,total for remaining stats 2026-03-25 05:32:33 +11:00
dmex 93c98a45e1 Add ThreadStackWindowPosition 2026-03-22 14:46:10 +11:00
Johnny Shaw de750fb5b6 kph formalize informer activation 2026-03-13 22:44:03 -06:00
dmex 0e270a053a Improve parameter name, type-safety, and SAL annotation consistency 2026-03-07 01:24:03 +11:00
dmex e866916f9e Update comments 2026-02-21 23:30:39 +11:00
dmex 1af1fd4717 Fix #2054 (Add setting DbgHelpVerifyMicrosoftChain) 2026-02-21 09:47:06 +11:00
dmex aa9ef43693 Update sysinfop.h 2026-02-13 05:12:31 +11:00
dmex 41f8b7aef7 Add high-resolution provider (low-latency mode) support 2026-02-05 16:51:12 +11:00
diversenok c73a4a4e14 Add desktop heap detection (#2816) 2026-02-05 08:32:10 +11:00
Johnny Shaw 5bdf86bd07 kph adjust dyndata messaging 2026-02-01 17:45:26 -07:00
Johnny Shaw c92e686b7a informer optimize database 2026-02-01 17:45:19 -07:00
Johnny Shaw 68c624a9f9 kph minimal system process name parameter 2026-02-01 17:45:17 -07:00
Johnny Shaw 240b482854 kph minimal system process 2026-02-01 17:45:17 -07:00
Johnny Shaw fd70a88fa8 kph restart self through tcb 2026-02-01 17:45:12 -07:00
Johnny Shaw e45b592282 informer process monitor 2026-02-01 17:45:09 -07:00
Johnny Shaw f5ca1149cf kph ring buffer settings 2026-02-01 17:45:09 -07:00
Johnny Shaw 3d68d8c577 thrdlist show kernel stack usage 2026-02-01 17:45:07 -07:00
dmex e747160b26 Add SystemInformer_GetMainMenu 2026-02-01 11:38:28 +11:00
dmex 5f8987008f Add fonts to process properties window 2026-01-19 15:30:55 +11:00
dmex b175f36e4e Update miniinfop.h 2026-01-17 05:54:41 +11:00
dmex a17592e2f6 Add settings $schema for vscode 2026-01-16 09:03:43 +11:00
dmex a62a76ddc0 Update log text for multiple columns 2026-01-14 07:01:42 +11:00
dmex d2cfd7f1fb Add listview wrappers and workaround sync issues 2026-01-14 05:51:11 +11:00
dmex db4c6f3c79 Add options to process properties 2026-01-14 02:59:00 +11:00
dmex b19f98f0d8 Add union for process/thread affinity and optimize for non-allocating 2026-01-07 08:19:16 +11:00
dmex a8c0eb56ec Fix SAL annotations 2026-01-06 00:37:59 +11:00
dmex d3c70cb9e6 Update mainwndp.h 2026-01-02 10:49:17 +11:00
dmex 18c6e8f934 Add treelist FullyInvalidated optimization 2025-12-31 16:25:39 +11:00
dmex 00882b42aa Add initial support for invoke queue 2025-12-31 16:10:11 +11:00