Commit Graph

2386 Commits

Author SHA1 Message Date
dmex 44a1665734 Update MC and RC and disable cvtres and coff conversions 2026-06-13 20:44:50 -06:00
dmex c0a4919a66 fixes 2026-06-13 20:44:26 -06:00
dmex d640c157b4 fixes 2026-06-13 20:44:26 -06:00
dmex f5cf831109 Initial 2026-06-13 20:44:19 -06:00
Johnny Shaw 2d6be64a39 kphuser fix SAL and output zeroing 2026-06-06 15:51:07 -06:00
dmex 4769220c25 Refactor module query flow; remove ELF type
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.
2026-06-03 17:08:30 +10:00
dmex 4c64d8ffa3 Correct PH_NETWORK_TYPE_MASK to 0x7 2026-06-02 23:46:26 +10:00
dmex ead9910db9 Fix PCLMUL init and ARM64 shuffle implementations
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).
2026-06-02 23:43:59 +10:00
dmex 6c032deb80 Update phintrin.h 2026-06-02 23:33:55 +10:00
dmex 94551bca08 Add PhSymCryptInitialize 2026-06-02 10:12:25 +10:00
dmex 295484637c Add SIMD wrappers for 256 2026-06-01 11:18:11 +10:00
dmex 2447dec66d Add PhAddMemoryUlong 2026-06-01 04:36:25 +10:00
dmex 309f34d82c Add PhGetItemPointerList 2026-06-01 04:34:54 +10:00
dmex 397dda6135 Fix various warnings 2026-06-01 04:30:30 +10:00
dmex 0b5209066a Add buffered paint/theme support and helpers 2026-05-28 05:06:20 +10:00
dmex 979acee0d0 Add parallel hash API and key-handle abstraction
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.
2026-05-28 04:40:15 +10:00
dmex 17d6111701 Fix rndrrs on ARM and build options 2026-05-24 08:59:04 +10:00
dmex 0b933cf2c6 Move SymCrypt wrapper into phlib
Move the SymCrypt wrapper sources into phlib while simplifying thirdparty project references.
2026-05-23 18:32:29 +10:00
dmex d2561eec02 Update SymCrypt API and hashing, also add PhGenerateGuidEx and ARM64 RDRAND 2026-05-23 16:54:54 +10:00
dmex 7d3d0c3330 Add PhEqualRect 2026-05-22 16:12:32 +10:00
dmex 6b63dcdee0 Add documentation 2026-05-21 08:55:58 +10:00
dmex 80c6725466 Add ThirdParty SymCrypt header to phlib sdk 2026-05-21 08:29:57 +10:00
dmex f674fcfd89 Update phnative.h 2026-05-21 08:07:54 +10:00
dmex 1aa71ebcf4 Update phintrin.h 2026-05-21 08:06:32 +10:00
dmex 410af838c3 phlib: change listview selection 2026-05-21 06:13:53 +10:00
dmex a37f955d48 Add ReturnLength to file info query APIs 2026-05-21 04:44:45 +10:00
dmex 444e5e03e8 Add ARM64 random number helper 2026-05-19 02:09:11 +10:00
dmex 0b2104b7ed Multiple fixes, typos and enhancements 2026-05-18 13:22:48 +10:00
dmex d6e26981da Add PhGetProcedureAddressT macro 2026-05-17 11:47:21 +10:00
dmex 82e36a96b3 Update phbasesup.h 2026-05-16 16:24:10 +10:00
Johnny Shaw 96db9dbdd5 make _Enum_is_bitflag_ SAL placement consistent with SDK 2026-05-12 17:11:16 -06:00
dmex edff23a5fc Add PhHttpDownloadUrl and callbacks 2026-05-12 07:17:24 +10:00
dmex 686a328413 Handle property-sheet WM_DPICHANGED and add tab-control layout helper 2026-05-11 18:46:14 +10:00
dmex f6aba94465 Add WindowDpi to treelist draw struct 2026-05-11 10:15:21 +10:00
dmex 96b6df5ff8 Cache per-graph fonts and handle DPI
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.
2026-05-11 08:25:58 +10:00
dmex 6debb84c88 Add Base64 encoder/decoder 2026-05-10 15:01:00 +10:00
dmex d4c5fa793a Add PhValidSecurityDescriptor 2026-05-10 14:39:10 +10:00
dmex a41207921d Update phnative.h 2026-05-09 16:31:03 +10:00
dmex 251cd35c41 Add PhGetSystemDpiForProcess and DPI defaults 2026-05-09 16:27:06 +10:00
dmex 484960305c Replace WinStation with nativesession.c 2026-05-09 14:55:08 +10:00
dmex 155a1ea7ec Add dynamic import for SetCoalescableTimer 2026-05-09 14:52:39 +10:00
dmex be22f57f39 Add Alt-to-NT separators 2026-05-07 03:52:35 +10:00
dmex f7fb8a3657 Update guisup.h 2026-05-05 23:02:36 +10:00
dmex 607815f5a5 Add SAL annotations for PhGetLastError 2026-05-05 21:49:40 +10:00
dmex b4f29c6ed9 Add WinStation session wrappers 2026-05-05 21:37:44 +10:00
dmex aa965164a2 Add PhEnableHighResolution and rename setting 2026-05-05 21:36:06 +10:00
dmex d815832155 Update secwmi.h 2026-05-05 20:41:39 +10:00
dmex 7adde6c40f Use object-type enum for handle name resolution
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.
2026-05-05 20:41:05 +10:00
dmex 6a11529cc1 Refactor DPI/scalable settings and add MI support 2026-05-05 20:32:46 +10:00
dmex d565127f37 Fix variable name for defaulted SACL in PhGetSaclSecurityDescriptor 2026-05-04 19:12:05 +00:00