Commit Graph

24 Commits

Author SHA1 Message Date
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 252dc91ac3 AgentTools clear the class grants on disconnect 2026-09-09 17:44:00 -06:00
Johnny Shaw 93c46c9a95 AgentTools correct the comments a re-anchored review found 2026-09-09 17:43:59 -06:00
Johnny Shaw 2c4a38f99e Cut the remaining comment cruft 2026-09-08 22:27:24 -06:00
Johnny Shaw f1dd0a0bb5 phlib fix empty file queries handing back an uninitialized buffer 2026-09-08 19:04:56 -06:00
dmex bec5870a10 Fix nativefile param docs for full-path APIs 2026-07-04 09:02:06 +10:00
dmex 2a749f767b Add two fallbacks for settings during save #2631 2026-07-03 16:03:55 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex 0b2104b7ed Multiple fixes, typos and enhancements 2026-05-18 13:22:48 +10:00
OrbisAI Security 12d69f4ee0 fix memcpy in phlib/nativefile.c (#2910) 2026-05-18 02:30:00 +10:00
dmex 307159a155 Update nativefile.c 2026-04-20 16:58:13 +10:00
dmex 493d36a931 Update nativefile.c 2026-04-17 10:16:58 +10:00
dmex c28eafc6b3 Update nativefile.c 2026-04-17 03:27:25 +10:00
Johnny Shaw 2df5e68bad phlib nativefile fix sal 2026-04-11 22:22:52 -06:00
dmex 2058eb9af8 Use stack allocations and add error checks
Replace heap allocations with PhAllocateStack across multiple functions in phlib/nativefile.c, add NULL checks that return STATUS_INSUFFICIENT_RESOURCES, and switch PhFree calls to PhFreeStack. Also capture and check status from NtQueryVolumeInformationFile to handle failures early, and improve PhDeleteDirectoryWin32 comments and logic (opening flags, enumeration/deletion flow, and idempotent success when the directory no longer exists). Includes minor clarity/comments around direct I/O alignment and bypass I/O usage.
2026-04-04 03:17:03 +11:00
dmex 9d193f141c Reorganize functions into nativefile/nativekey/nativejob/nativeprocess/nativetoken 2025-12-31 03:04:30 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
Johnny Shaw 81870d0a4c clang-msvc fix tautological-constant-out-of-range-compare 2025-08-09 12:12:27 -06:00
Johnny Shaw b0e93b2dfd phnative move PhGetFileMotw 2025-05-20 12:51:11 -06:00
Johnny Shaw cc5933f8cd nativefile add PhGetFileMotw 2025-05-20 11:02:45 -06:00
dmex 20799aa2ec Add PhGetProcessIdsUsingFileByName 2025-05-09 23:18:59 +10:00
dmex 594bd86522 Initialize empty directory enumeration #2548 2025-05-08 02:58:48 +10:00
dmex 6317244ea6 Restructured common code 2025-05-07 08:29:22 +10:00