This commit changed PhfResetEvent semantics based on a development branch with WaitOnAddress-based event redesign. The code is incomplete and was not merged; master only contains the kernel-event `PhfSetEvent` that dereferences on set, and is missing the WaitOnAddress changes and broke the reference accounting.
WM_SYSCOLORCHANGE is only delivered to top-level windows, so descendant common controls (e.g. toolbars) were painting with stale cached system colors after a color scheme change.
Improve file pool initialization by rejecting headers with out-of-range SegmentShift values and returning STATUS_FILE_CORRUPT_ERROR before any unsafe size/offset calculations. Also replaced hardcoded SegmentShift bounds in parameter validation with new shared constants (PH_FP_SEGMENT_SHIFT_MIN/MAX) in filepool.h to keep limits consistent across create/load paths.
This changeset tightens cache file path handling in phlib by validating leaf names, honoring native vs Win32 path modes consistently, and using the correct directory creation path. It also fixes several functional regressions across the app and plugins: module list filter refresh after highlight toggles, ETW endpoint/port mapping, aggregate sort field usage, graph child window clipping, safer uninstall status text handling, previous-instance shutdown in setup, and improved window-message timeout handling. Additional updates clean up initialization/casts, remove dead code, and address small correctness issues in formatting and utility logic.
Reworks the TabNew control around message-based helpers and centralized layout flushing, adds new flags/messages (including thin-tab metrics), and improves font/theme/DPI handling, painting, and delete notifications. Page tracking is now synchronized through item-to-page links, with safer delete-all behavior and consistent page index updates after insert/move/delete.
Main window tab handling was migrated to the new TabNew wrappers/atom creation path, including selection and layout save/restore calls, and now resyncs cached page indexes on selection changes so reordered tabs activate the correct page.
Refines theme behavior in phlib and ToolStatus so dark mode only applies when the active background is actually dark, and ensures property sheets, tabs, and control colors repaint correctly. Rebar bands now get explicit themed colors on insert and via a new refresh path during settings/theme updates, fixing stale/light band areas during live theme mode switches.