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.
This change updates phlib with broader native API compatibility shims, new CRC32/CRC32C tables, and safer utility helpers. It also fixes a number of synchronization, formatting, environment, and process-creation edge cases, adds correlation-vector support, hardens SID conversion and image-resource loading, and cleans up several Windows compatibility fixes across the library.
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.
Switch to the SymCrypt streaming API (Init/Append/Result) so the code no longer needs to concatenate inputs into a temporary buffer; on init failure the digest is zeroed. Also add missing PhFree calls in native/non-native MD5/SHA1 branches and a small cleanup in PhGenerateClass5Guid.
Use the correct variables parentNameFilePart to PhCompareStringRef instead of apiSetNameShort to compare the intended name parts, and pass &context to PhEnumWindows in PhEndWindowSession instead of &clientId so the window enumeration callback receives the proper context. These changes correct mismatched argument usage and ensure callbacks and comparisons operate on the right data.
Replace manual bitmasking of the HRESULT with HRESULT_FACILITY() and HRESULT_SEVERITY() . This makes the Win32 error check clearer and uses standard macros for determining FACILITY_WIN32 and SEVERITY_ERROR while preserving the original behavior.
Treat returnLength as a WCHAR count instead of bytes: compute it from time/date buffer sizes, compare BufferLength after converting to bytes, and return the output length in bytes. Replace the previous sizeof(UNICODE_NULL) hack with (returnLength - 1) * sizeof(WCHAR). On failure, set *ReturnLength to 0. These changes correct off-bytes/termination size handling when formatting date/time into the buffer.