Commit Graph

103 Commits

Author SHA1 Message Date
dmex 6fdcdc7bf5 Improve phlib helpers and annotations
Improve phlib utility correctness and API contracts across GUI, memory, math, and SIMD support. This updates `PhSendMessageTimeout` to return `NTSTATUS`, fixes pointer subtraction and tick/time macros, adds null guards around image list helpers, and corrects a debug rectangle comparison.

The change also expands public helper coverage with heap, image-directory, 128-bit math, delta-clamping, and SIMD utility declarations, while adding SAL/NTAPI annotations so callers get clearer success/failure and nullability guarantees.
2026-09-25 15:31:30 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex ca6af0ea2d Refactor UI buffering and propsheet behavior 2026-06-27 17:00:05 +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 b34a4b4d8d Add PH_RESTRICT 2026-04-15 13:42:00 +10:00
dmex 006ec02af6 Improve address/overflow checks in phsup.h
Compute explicit start/end addresses for user and buffer ranges and add proper wrap/overflow checks to prevent integer wraparound and access violations. Replace MAXULONG_PTR and (ULONG_PTR)-PAGE_SIZE uses with ULONG_PTR_MAX-based comparison. Use PAGE_ALIGN + PAGE_SIZE to advance page pointers and normalize volatile dereference syntax for readability. These changes tighten bounds checking in PhProbeAddress/PhProbeForRead/PhProbeForWrite to avoid subtle failures on pointer wraparound.
2026-04-03 05:28:25 +11:00
dmex 7458f92727 Update phsup.h 2026-03-29 03:15:37 +11:00
Johnny Shaw 25b6d0ae3d phsup fix probing functions 2026-03-26 22:21:30 -06:00
dmex bae2ca3b41 Update comments and tidy up 2026-03-22 11:31:16 +11:00
dmex cb8e5f11b6 Update arguments to pointers 2026-01-04 07:15:39 +11:00
dmex 04e1fa04b3 Update phsup.h 2025-09-28 05:46:25 +10:00
dmex 89defc9229 Update comments 2025-09-20 08:52:56 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 6c20c78fb6 Merge minor fixes from dev branch 2025-08-20 11:54:19 +00:00
Johnny Shaw 42e87f6a62 clang-msvc fix unused-function 2025-08-10 12:38:31 -06:00
Johnny Shaw 1bb3cd9a48 clang-msvc fix macro-redefined _MM_HINT 2025-08-10 11:04:58 -06:00
Johnny Shaw b5cf53a587 phnt move useful WDK macros 2025-02-05 19:47:00 -07:00
dmex 0424133b79 Add PPCH_STRINGREF 2025-01-14 16:24:39 +11:00
dmex 9b85ae34a6 Add PhProbeForRead, PhProbeForWrite 2025-01-01 02:53:55 +11:00
dmex 7a6bd95db4 Fix regression from a1b40b530 2025-01-01 02:52:38 +11:00
dmex a1b40b530b Update to the latest SDK 2024-12-31 22:56:12 +11:00
dmex fc420be32b Update to latest SDK 2024-12-28 14:07:01 +11:00
Johnny Shaw f6c749329f remaining workaround msvc uninitialized stack bug 2024-12-26 10:27:20 -07:00
dmex 95bc2fe8c1 Update to the latest SDK 2024-12-01 16:35:49 +11:00
dmex 975984f288 Update phsup headers 2024-10-18 22:45:10 +11:00
dmex f92eab7083 Update SDK for const compatibility
Resolves C++ SDK compatibility issues
2024-10-17 04:33:07 +11:00
dmex 3230e69ba3 Update phsup.h 2024-09-05 18:13:46 +10:00
dmex b2cf6bd46d Add PhPrintUInt32IX 2024-06-25 04:14:55 +10:00
dmex e64788f548 Add stdint.h 2023-10-01 08:35:20 +11:00
dmex 5672aa1316 Add IS_ALIGNED and ROUND_TO_SIZE 2023-09-25 00:26:37 +10:00
dmex 6ac6f8d332 Add BYTE_OFFSET/PAGE_ALIGN macros 2023-09-10 10:23:23 +10:00
dmex 18c8d1207f Add malloc.h 2023-09-10 10:10:11 +10:00
dmex 487b123275 Fix comparing results from PhGetLastWin32ErrorAsNtStatus 2023-08-27 23:12:00 +10:00
dmex a0683a4b8e Add SSE42 popcnt support 2023-04-13 15:56:24 +10:00
dmex adc9bacb87 Update PhpAccessEntryCompare comparison 2023-04-13 04:43:28 +10:00
dmex ab752a87f3 Add PAGE_SHIFT 2023-03-23 19:10:37 +11:00
dmex 2609347d85 Add UInt32Sub32To64 2023-03-06 11:20:25 +11:00
dmex d47192c520 Add PAGE_MASK 2023-02-23 18:48:20 +11:00
dmex a6b1c97376 Update UInt32Add32To64 macro 2023-02-18 03:03:04 +11:00
dmex d653752fb2 Update headers 2023-02-10 01:46:48 +11:00
Johnny Shaw f93555d147 ARM64 support 2022-12-20 21:40:21 -07:00
dmex 16dee735d5 Fix SAL warning when passing 0 to PhPrintPointer 2022-11-22 22:28:14 +11:00
dmex c069c83343 Update phsup.h 2022-10-18 12:50:40 +11:00
Johnny Shaw 3550bbe794 option to zero pad addresses (#1416) 2022-10-12 22:47:27 -06:00
dmex 24408d0eca Add PhNtPathSeperatorString and SysAllocStringLen 2022-07-29 01:21:40 +10:00
dmex 2c6eb438fc Update PhTimeoutFromMilliseconds, PhTimeoutFromMillisecondsEx 2022-04-26 10:20:43 +10:00
dmex 3616632f86 Add PhCountBitsUlongPtr 2022-03-15 16:00:58 +11:00
dmex 45cb485d4f Sync many performance improves, latest changes and bug fixes (#1021)
* Add Win11 support for KPH and Win11 types for PHNT.
* Add support for X65599 hashes improving performance by 70% in most cases.
* Add support for highlighting protected system processes.
* Add support for showing Bound connections on the network tab.
* Add support for processor energy statistics (can be enabled via options window).
* Add support for freeze/unfreeze processes on Win11 via process context menu.
* Add support for showing COM thread apartment via process threads window.
* Reduces memory and improves performance for querying process command lines and filenames.
* Improves performance for querying performance counters.
* Improves performance for graph controls.
* Fixes wcslen performance regression improving performance by 90% in most cases.
* Fixes graph tooltips not being being hidden when mouse leaves window.
* Fixes issues with tray icons when explorer.exe has crashed or deadlocked.
* Fixes main window not getting focused in some cases.
* Fixes eventlog message about realtime trace listeners for some users.
* Fixes UserNotes database lookups when no entries improving runtime performance.
* Fixes UTF8 image export names.
* Fixes extra main window padding added by tab control.
* Plus many other minor changes and fixes.
2021-10-31 21:05:41 +11:00
dmex b589f07263 Fix timeout macro codegen 2021-08-20 18:46:27 +10:00
dmex 16488e81f6 Update exports, Update SAL 2020-09-07 20:22:55 +10:00