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).
Fix bitmap size fields and loop bugs and add SIMD optimizations for alpha processing and significantly improve performance for alpha testing and conversion on platforms with SIMD support, while keeping safe fallbacks for other targets.
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.
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.
Adjust available column width calculation to subtract the vertical scrollbar width when WS_VSCROLL is set (using PhGetSystemMetrics). Introduce currentWidth to fetch the existing column width (via PhListView_GetColumn or LVM_GETCOLUMN fallback) and skip resizing if the width already matches. Also short-circuit when available width is below 40 to avoid unnecessary operations, and preserve existing code paths for setting column width via ListViewContext or CallWindowProc.
Make various fixes and harden the layout manager:
- Ensure root window gets WS_CLIPCHILDREN|WS_CLIPSIBLINGS if missing to avoid painting issues.
- Add null/rect checks: return NULL when allocation or PhGetWindowRect fail in PhAddLayoutItem/PhAddLayoutItemEx to avoid using invalid items.
- Use FlagOn() for PH_LAYOUT_TAB_CONTROL checks.
- Implement centering logic for items that are anchored to neither side (horizontal and vertical) instead of raising STATUS_NOT_IMPLEMENTED.
- Use SWP_NOREDRAW when moving windows to suppress intermediate redraws, and issue a single RedrawWindow for items with PH_LAYOUT_IMMEDIATE_RESIZE after the deferred batch completes to avoid flicker.
- Minor documentation update and remove an outdated commented hack.
These changes prevent crashes with destroyed windows, fix layout behaviour for unanchored controls, and reduce visual flicker during layout updates.
Use a generator expression ($<$<COMPILE_LANGUAGE:C,CXX>:/Gz>) so the MSVC /Gz (stdcall) compiler flag is applied only for C and C++ compilations. This avoids injecting the option for other languages.
Stop converting the DOS error to an NT status before calling PhExitApplication in ExitProcess_Stub; pass the original uExitCode directly. This removes the PhDosErrorToNtStatus conversion which could produce an incorrect value and aligns the call with PhExitApplication's expected parameter.