Commit Graph

54 Commits

Author SHA1 Message Date
dmex 025db3a0ec Fix UI init and token diagnostics
This change moves main-window setup to WM_CREATE to avoid invalid initial layouts, improves dialog focus and window-placement restoration, and includes a wide set of Win32/UI correctness fixes across the app. It also adds thread-stack and Wow64 safety handling, improves token details (authority/RID and elevated-privilege highlighting), and broadens the low-level documentation comments. The update also adjusts a few build settings in CustomBuildTool to improve runtime behavior.
2026-10-01 23:49:16 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10: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 a660d5e054 Update SAL Annotations 2025-09-22 19:04:22 +10:00
dmex 2818520fdc Fix NumberOfBytesRead SAL annotation 2025-09-20 17:20:54 +10:00
dmex 8dfb01aecb Add PhReadVirtualMemory and PhInitializeRemoteMappedImage 2025-09-20 08:52:00 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 8f02da7729 Update SAL Annotations 2025-05-15 01:10:28 +10:00
dmex a7473d0657 Update SAL Annotations 2025-05-15 00:39:39 +10:00
dmex e3ed9a4814 Settings format and consistency 2025-03-26 20:32:28 +11:00
dmex 0affd41233 Update PPH_STRINGREF to PCPH_STRINGREF 2025-02-25 17:24:27 +11:00
dmex 2d1d1fb355 Update attributes and types 2025-02-11 16:10:35 +11:00
dmex 2c03cc2bd6 Remove legacy code 2024-12-31 22:59:32 +11:00
dmex ab6986606b Update to latest SDK 2024-12-08 08:03:23 +11:00
dmex e2f7b8e0ed Update to the latest SDK 2024-12-02 04:58:17 +11:00
Johnny Shaw 69a609b8c9 fix enclave list lookup 2024-11-19 14:13:37 -08:00
dmex f92eab7083 Update SDK for const compatibility
Resolves C++ SDK compatibility issues
2024-10-17 04:33:07 +11:00
Johnny Shaw aad7eda90a modprv correct module exist check 2024-10-06 10:43:21 -06:00
Johnny Shaw 0abfd3c51f modprv hash table correction 2024-10-06 10:23:27 -06:00
dmex fa8049645c Make module headers consistent 2024-10-03 22:34:59 +10:00
dmex f26ebef6d3 Update types 2024-09-06 20:24:02 +10:00
dmex 1cd217d0cf Add non-allocating image relocation enumeration, Update types and functions to match native versions 2024-08-19 03:39:09 +10:00
Johnny Shaw 11977a982b kph improve vmem read 2024-06-24 10:22:31 -06:00
dmex 1375429a90 Update to latest SDK 2024-06-23 05:49:26 +10:00
Johnny Shaw 642cf7896e modlist architecture 2024-02-09 20:28:53 -07:00
dmex fd07f90b16 Remove unused access mask 2023-11-22 08:18:38 +11:00
dmex b179ee30b3 Update MappedImage to latest SDK 2023-10-07 20:16:02 +11:00
dmex d92c212e15 Add PhInitializeSListHead 2023-09-25 01:06:23 +10:00
Johnny Shaw efd87d92ef correct static in PhpGetLdrEnclaveList 2023-09-19 17:48:19 -06:00
Johnny Shaw e743af0ac6 fix possible symbol provider deadlock 2023-09-19 17:46:39 -06:00
dmex fce042ae60 Export PhGetModuleTypeName, PhGetModuleLoadReasonTypeName, PhGetModuleEnclaveTypeName 2023-09-20 08:06:24 +10:00
dmex 9df95086fe Add PhGetModuleEnclaveTypeName and PhGetModuleLoadReasonTypeName 2023-09-20 07:02:58 +10:00
Johnny Shaw 42c7fbbdf1 enclave module visibility 2023-09-09 20:14:45 -06:00
Johnny Shaw 7ace088072 modprv add LdrEnclaveList 2023-09-09 19:51:51 -06:00
dmex 354794766d Fix inconsistent FileEndOfFile checks 2023-07-17 03:10:07 +10:00
Johnny Shaw 18c1d4e6a4 add option for shared original image coherency 2023-07-05 19:08:24 -06:00
dmex 703a198aff Update SAL annotations 2023-05-16 02:12:24 +10:00
dmex bde8023dc0 Fix invalid CID errors with virtual processes 2023-04-04 04:04:39 +10:00
dmex 04891d9cff Add remote image size validation 2023-04-03 18:24:31 +10:00
dmex ee3b254cd1 Fix UTF8 filename enumeration and remove legacy FileNameWin32 2023-03-17 18:10:52 +11:00
dmex 07a71c9ab6 Tidy up module enumeration and update LastWriteTime and EndOfFile for mapped process modules 2023-02-23 13:44:26 +11:00
dmex 42bc8cc583 Remove unused includes 2023-01-09 16:42:50 +11:00
dmex 118ba6723a Remove duplicate IsSubsystemProcess query 2022-12-21 12:28:24 +11:00
dmex d93a861e66 Remove duplicate PackageFullName query 2022-12-21 12:25:33 +11:00
Johnny Shaw 3550bbe794 option to zero pad addresses (#1416) 2022-10-12 22:47:27 -06:00
dmex 53b5fd4897 Fix module/memory address format 2022-10-09 03:19:28 +11:00
dmex e9b1a7865f Remove whitespaces 2022-09-13 15:24:15 +10:00
dmex 8efe12d383 Remove filename lookup 2022-08-08 01:06:55 +10:00
Johnny Shaw f7a04113d4 driver work (#1320) 2022-08-06 21:49:05 -06:00
rtldg 0aaa1ac1aa Add monospace font setting & use in memory list (#1290)
* Right align address in memory list

* add flag to make column use SYSTEM_FIXED_WIDTH font

* move PH_TREENEW_FIXED_WIDTH_FONT from TextFlags to Alignment & grab a different default mono space font

* rename PH_TREENEW_FIXED_WIDTH_FONT to PH_ALIGN_MONOSPACE_FONT

* go all in with adding setting FontMonospace

* fix Options->Advanced tree item being inserted twice

* Right align address in memory list

* add flag to make column use SYSTEM_FIXED_WIDTH font

* move PH_TREENEW_FIXED_WIDTH_FONT from TextFlags to Alignment & grab a different default mono space font

* rename PH_TREENEW_FIXED_WIDTH_FONT to PH_ALIGN_MONOSPACE_FONT

* go all in with adding setting FontMonospace

* fix Options->Advanced tree item being inserted twice

* style suggestions

* Use PhFormatToBuffer for printing memlist pointer

* Update SystemInformer/modlist.c

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>

* Update SystemInformer/memlist.c

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>

* use zero-padded pointers in the Modules EntryPoint & BaseAddress columns

* move module base address formatting functions near each other

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2022-07-30 15:17:44 -06:00