Introduce a more flexible module query system and remove the ELF-specific module type. Key changes:
- Remove PH_MODULE_TYPE_ELF_MAPPED_IMAGE from PH_MODULE_TYPE and delete related usages.
- Add PH_MODULE_QUERY_DATA flags (PH_MODULE_QUERY_FULL, PH_MODULE_QUERY_FILE_ATTRIBUTES) to control work performed by background queries.
- Extend query data with file attribute/status fields and verify-result validity tracking.
- Implement PH_MODULE_KEY, hash and equality funcs to build a temporary hashtable of enumerated modules for efficient removed-module detection.
- Create a lazily-initialized module query work queue (PhpModuleQueryWorkQueue) and route module queries through it; PhpQueueModuleQuery now accepts Flags and avoids duplicate queries via QueryPending.
- PhpModuleQueryWorker now conditionally performs file-attribute queries, verification, and image-coherency checks based on flags and provider/process state; it records results into module items and updates modified state accordingly.
- Adjust provider update logic: use the module-key hashtable to detect removed modules, only queue full verification for non-subsystem processes, and queue file-attribute-only queries for subsystem processes; avoid treating subsystem modules as ELF mapped images.
- Misc: reduce initial list size in PhModuleProviderUpdate and ensure module item timestamps/sizes are updated from file attributes.
These changes aim to reduce unnecessary work for subsystem processes, avoid a separate ELF module kind, and make background querying more efficient and robust.
Use InterlockedCompareExchange when initializing the PCLMUL detection state to avoid a race (replace WriteULongRelease with atomic CAS and adjust local variables). Correct parameter documentation in PhAddFLOAT128 (fix Divisor/Dividend descriptions). Update ARM64 NEON implementations for PhShuffleFLOAT128_2301 and PhShuffleFLOAT128_1032 to produce the correct lane ordering that matches the corresponding _MM_SHUFFLE semantics (adjusted use of vget_low/vget_high and vrev64_f32).
Introduce a parallel multi-hash API and a handle-based asymmetric key abstraction. add types, macros and function prototypes for parallel SHA-256/384/512 batching (init/process/cleanup/get capabilities) and for PH_SYMCRYPT_KEY_HANDLE-based key operations and RSA blob generation. phlib/phcrypt.c: implement the parallel hashing routines (allocation, processing, cleanup) and a BCrypt-like key handle layer (generate/finalize/import/export/sign/verify/destroy) plus RSA/ECDSA blob handling. Also add ntintsafe usage and numerous input validation, integer-overflow and buffer-safety checks (RtlSIZETAdd/Mult, parameter NULL checks, memset initializations) to harden existing cryptographic routines.
Introduce per-graph cached fonts and DPI tracking to avoid global font handle replacement across windows. Replace the previous global queued-lock/lastDpi/iconTitleFont approach with per-drawinfo caching, and ensure graph contexts free their cached fonts on destroy. When copying draw-info between users, only copy the public prefix using FIELD_OFFSET to avoid copying cache fields. Also fix font height adjustments to use PhMultiplyDivideSigned.
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.