Commit Graph

45 Commits

Author SHA1 Message Date
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 8d6b4a1552 Refactor module list invalidation and coloring logic 2026-04-13 16:49:17 +10:00
dmex 736945e66e add CONST qualifiers to static sort function arrays and use proper _CoreCrt* function-pointer types; 2026-04-10 16:01:36 +10:00
dmex 0e270a053a Improve parameter name, type-safety, and SAL annotation consistency 2026-03-07 01:24:03 +11:00
dmex 2b88d9db0a Update modlist.c 2026-02-13 05:12:58 +11:00
dmex e1a379072d Update settings 2025-12-26 23:46:28 +11:00
dmex d6fa11f143 Update SAL annotations and add stack allocations for some types 2025-10-08 15:43:41 +11:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
Johnny Shaw e54016ee9a modlist correct enclave and arch column alignment 2025-07-12 21:33:17 -06:00
dmex e571151f99 Fix memory leak, Fix module size update 2025-06-17 08:33:23 +10:00
dmex 95ab29e200 Update SAL Annotations and Fix typos 2025-05-15 13:12:48 +10:00
dmex c5010080d0 Update comments and types 2025-05-06 00:34:45 +10:00
dmex c46bc6ae44 Exclude null sorting for modules 2025-03-22 04:37:15 +11:00
dmex 105090861c Fix modules tab font dpi scaling 2025-03-11 06:13:01 +11:00
dmex 0affd41233 Update PPH_STRINGREF to PCPH_STRINGREF 2025-02-25 17:24:27 +11:00
dmex f8757ab345 Update to the latest SDK 2024-12-01 16:17:11 +11:00
dmex b5c8ece612 Tidy up 2024-11-30 06:10:41 +11:00
ge0rdi 8255bb904e Few improvements (#2257)
* fix Ctrl+K (search box) handling

- tree view didn't pass keypresses to parent window so it was not
  possible to handle the keyboard combo
- some plugins didn't handle Ctrl+K at all

Fixes #2241

* treenew handle Ctrl+A in common code

* searchbox pressing escape will abandon search

Current search is abandoned and focus is returned to window that
previously had it, instead of closing whole dialog.

* fixup! searchbox pressing escape will abandon search

* Update SystemInformer/searchbox.c

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

* Update SystemInformer/searchbox.c

---------

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2024-10-29 19:04:04 -06:00
dmex de6d1c9c11 Update to latest SDK 2024-09-09 07:33:45 +10:00
Johnny Shaw 783b56face fix architecture for ARM64X and .NET 2024-06-05 20:36:42 -06:00
Johnny Shaw 642cf7896e modlist architecture 2024-02-09 20:28:53 -07:00
Johnny Shaw af6352dc38 show disabled digital signature support 2023-10-08 14:36:20 -06:00
dmex 9df95086fe Add PhGetModuleEnclaveTypeName and PhGetModuleLoadReasonTypeName 2023-09-20 07:02:58 +10:00
Johnny Shaw a04484973a show enclave load reason 2023-09-10 22:51:05 -06:00
dmex 04b3911f85 Update types for latest SDK 2023-09-11 02:47:46 +10:00
Johnny Shaw 42c7fbbdf1 enclave module visibility 2023-09-09 20:14:45 -06:00
dmex 28800f4401 static_assert sorting callbacks to catch missing columns 2023-06-21 11:15:36 +10:00
dmex c599dba503 Add PhTimeToSecondsSince1980, PhSecondsSince1980ToTime, PhTimeToSecondsSince1970, PhSecondsSince1970ToTime 2023-03-31 16:45:45 +11:00
dmex ee3b254cd1 Fix UTF8 filename enumeration and remove legacy FileNameWin32 2023-03-17 18:10:52 +11:00
dmex 4718e9425d Tidy up null checks 2023-03-01 20:53:46 +11:00
Johnny Shaw 14bf0fad0e clean up PhVerifyResultToString and renamed to fit convention 2023-02-27 21:37:52 -07:00
Johnny Shaw 71119b329c remove signature assumptions and add verbose status text 2023-02-27 21:19:33 -07:00
dmex 26f61d1df6 Fix regression searching handles and threads by id (partial revert 9f3e09b0d9) 2023-02-02 06:22:04 +11:00
dmex 42bc8cc583 Remove unused includes 2023-01-09 16:42:50 +11:00
dmex e1900494ba Update SAL annotations and remove redundant checks 2023-01-09 16:38:53 +11:00
Johnny Shaw e4c07dbeb2 better imagecoh display above threshold 2022-11-20 19:07:15 -07:00
dmex 049fe19546 Fix sorting modules by service name 2022-10-14 04:23:09 +11:00
dmex c85c61ccb1 Add treelist node invalidation for memory and module tabs 2022-10-14 04:20:52 +11:00
Johnny Shaw 3550bbe794 option to zero pad addresses (#1416) 2022-10-12 22:47:27 -06:00
dmex e9b1a7865f Remove whitespaces 2022-09-13 15:24:15 +10:00
dmex 682fe7ea7a Add support for precision below 0.01 (Fixes #1134) 2022-09-13 05:02:44 +10:00
dmex fa9fae3b31 Add 'Enable monospace fonts' checkbox to options window 2022-08-02 17:46:34 +10: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
dmex 7cf151713a Update solution 2022-06-16 11:25:11 +10:00