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.
Introduce a mapping from object type indices to PH_HANDLE_OBJECT_TYPE and lazy-initialize it (PhEnsureHandleObjectTypeTable). Add helpers PhGetHandleObjectType, PhIsObjectTypeIndex and PhGetObjectTypeNameEx. Refactor PhpGetBestObjectName to switch on the enum instead of doing repeated string comparisons, simplify per-type name resolution and update many type-specific query/duplication paths. Adjust PhGetObjectBasicInformation pointer/handle count corrections to account for Windows version differences, and update PhGetHandleInformationEx to accept/use ObjectTypeNumber for more reliable decisions when fetching names.