This change moves main-window setup to WM_CREATE to avoid invalid initial layouts, improves dialog focus and window-placement restoration, and includes a wide set of Win32/UI correctness fixes across the app. It also adds thread-stack and Wow64 safety handling, improves token details (authority/RID and elevated-privilege highlighting), and broadens the low-level documentation comments. The update also adjusts a few build settings in CustomBuildTool to improve runtime behavior.
Introduce V2 toast notification support and a dedicated STA toast pump thread with synchronous marshalling, progress updates, hide/release helpers, and action callbacks. Add settings.schema.json for editor validation. UI and UX fixes: add advanced setting editor dialog, handle groupbox z-ordering/theming and remove WS_EX_TRANSPARENT, clear mini-info selections on left click, and pick initial mini-info section based on single enabled tray icon. Add DPI-aware process property buttons update (PhpUpdateProcessPropButtonsDpi) and export PhReferenceFont. Concurrency/listing changes: use NoFence variants for process list insertion/removal. Misc: add resource viewer, update headers and build/project files.
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.