Commit Graph

357 Commits

Author SHA1 Message Date
dmex 66e276b763 Improve phlib API compatibility and utilities
This change updates phlib with broader native API compatibility shims, new CRC32/CRC32C tables, and safer utility helpers. It also fixes a number of synchronization, formatting, environment, and process-creation edge cases, adds correlation-vector support, hardens SID conversion and image-resource loading, and cleans up several Windows compatibility fixes across the library.
2026-09-30 00:45:00 +10:00
dmex 7eb7a165fe Add SD helpers and Processor Utility statistics
Extend phnative with new native APIs for security descriptor and processor statistics handling. This adds self-relative SD conversion helpers and introduces per-processor information queries plus utility/performance delta/statistics calculations (including multi-group support and Windows-version-aware distribution parsing).
2026-09-25 09:53:48 +10:00
Johnny Shaw 3eeb166019 AgentTools fix smoke-test findings and rework consent flow 2026-09-07 16:53:32 -06:00
Johnny Shaw fa64b7ab36 AgentTools initial commit 2026-09-07 16:52:33 -06:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex cc75c999f9 PH_NAMED_PIPE_PREFIX_TYPE 2026-06-27 22:59:35 +10:00
dmex ca6af0ea2d Refactor UI buffering and propsheet behavior 2026-06-27 17:00:05 +10:00
dmex a117f7175b Add limited module enumeration callback 2026-06-21 15:19:46 +10:00
dmex 6ab42a8276 Add PhWaitForManyObjects and IOCP wait-completion packets 2026-06-15 09:37:37 +10:00
dmex 6e8574a8c4 Add PhConvertBitmapToIcon 2026-06-15 09:32:42 +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 f674fcfd89 Update phnative.h 2026-05-21 08:07:54 +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 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 d565127f37 Fix variable name for defaulted SACL in PhGetSaclSecurityDescriptor 2026-05-04 19:12:05 +00:00
dmex 3b7646f0d1 Improve DACL and SACL handling 2026-05-04 18:58:13 +00:00
dmex ed3d774ba7 Improve security descriptor and ACL handling 2026-05-05 02:00:59 +10:00
dmex 0f83f734dd Add enum flag helpers, font/DPI and API fixes 2026-04-23 07:37:06 +10:00
dmex 15e7859cc0 Add PH_RESTRICT, rename locals, and adjust defs
Apply PH_RESTRICT annotations to many pointer parameters and internal pointers to improve aliasing/optimization (string routines, graph drawing, hashing, comparison, copy functions)
2026-04-19 01:20:45 +10:00
dmex e6558dcdf5 Update phnative.h 2026-04-13 03:31:52 +10:00
dmex a215315479 Update phnative.h 2026-04-13 03:30:12 +10:00
Johnny Shaw 2df5e68bad phlib nativefile fix sal 2026-04-11 22:22:52 -06:00
dmex c415778b16 Add HighResolution flag to PhSetWaitableTimer 2026-04-09 20:57:41 +10:00
dmex 8aa6a340e2 Add new native API declarations (process IO/VM counters, basic process enumeration helpers, mutant/event APIs) to phnative.h, Rename build version APIs and add native APIs 2026-04-08 05:27:21 +10:00
dmex d877b9c30c Add PhSetExpandKeyString 2026-03-25 05:36:17 +11:00
dmex 7d0e64642b Move PhOpenDirectoryObject, PhEnumDirectoryObject 2026-03-25 01:30:17 +11:00
dmex af78d92c9b Update phnative.h 2026-03-22 11:57:35 +11:00
dmex bae2ca3b41 Update comments and tidy up 2026-03-22 11:31:16 +11:00
dmex afb1b61bfa Update PhGetTokenPackageFullName 2026-01-19 15:22:44 +11:00
dmex 0b6c374bf0 Rename PhGetProcessIsTerminated and PhGetProcessIsTerminating 2026-01-11 11:57:27 +11:00
dmex fd7ba17944 Add PhEnumerateValueKeyEx 2026-01-09 10:41:14 +11:00
dmex b0ab71841f Reorganize process functions 2026-01-07 07:58:02 +11:00
dmex c70b50134c Update phnative.h 2026-01-04 12:15:49 +11:00
dmex 863ea2db46 Reorganize functions and imports 2026-01-04 07:26:47 +11:00
dmex 84a923d698 Update phnative.h 2025-12-31 06:16:16 +11:00
dmex 9d193f141c Reorganize functions into nativefile/nativekey/nativejob/nativeprocess/nativetoken 2025-12-31 03:04:30 +11:00
dmex bd9effd7b0 Update documentation and types 2025-12-12 19:42:59 +11:00
dmex 6fd824a6c6 Update phnative.h 2025-12-06 10:39:12 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex 17fc86d09e Add comments and PhOpenSection 2025-11-18 08:46:58 +11:00
dmex a0681609c2 Fix typo, Improve error handling for long path support on Windows 10 2025-11-17 21:24:03 +11:00
dmex 6bf73eaeba Fix symbols for kernel modules on 24H2 and above 2025-10-08 20:34:26 +11:00
dmex 400d9a0ef1 Add SysInfoShowCpuSpeedPerCpu 2025-09-28 18:01:44 +10:00
dmex 57aaf4aace Move PhGetThreadAffinityMask to nativethread 2025-09-23 09:26:13 +10:00
dmex 1f8a940fc1 Tidy up 2025-09-22 23:29:14 +10:00
dmex 741f985ec0 Add PhQueryValueKeyZ 2025-09-22 19:11:22 +10:00