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.
* 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>
* 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>