Commit Graph

2450 Commits

Author SHA1 Message Date
dmex e7fffcc8ee Improve UI theming and search control behavior
This changeset overhauls several UI infrastructure paths: it adds richer column drag/drop visuals, expands the search box with fuzzy matching and match-range APIs, and refactors theme handling (including Explorer-style palette support, buffered/non-client paint cleanup, and new theme file utilities). It also hardens core behavior with many reliability fixes, such as bounded HTTP download buffering, safer process/service enumeration and handle ownership updates, improved window/context lifecycle handling, DPI/layout fixes, and broader consistency updates across dialog/list-view drawing and helper APIs.
2026-10-02 13:27:30 +10:00
dmex 85d525e8e5 Annotate queued lock fast paths
Add SAL lock-state assumptions to queued lock acquire, try-acquire, and release fast paths in `queuedlock.h`. This teaches static analysis that the inline interlocked operations really acquire, hold, and release the lock, reducing false positives without changing runtime behavior.
2026-10-01 16:06:39 +10:00
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 ef5ddba8c9 Update guisup.h 2026-09-28 16:47:43 +10:00
dmex c5b13687d9 Track actual provider run elapsed time
Store the performance-counter span between provider runs and expose helpers to read it in raw ticks or milliseconds. This lets callers calculate rates from the real elapsed time instead of the nominal interval, which improves accuracy when providers are boosted, delayed, or paused.
2026-09-26 05:08:14 +10:00
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 162da2d30a Add custom subitem drawing to ExtLV
Extend the extended list-view custom draw path with a subitem draw callback. The control now stores a `PPH_EXTLV_DRAW_SUBITEM` handler, opts into `CDRF_NOTIFYSUBITEMDRAW` when present, and skips default rendering when the callback handles a subitem. A new `ELVM_SETSUBITEMDRAWFUNCTION` message wires the callback into the control.
2026-09-25 15:19:05 +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
dmex 5e42fb5062 Expand CLR metadata mapping APIs
Move CLR metadata schema and P/Invoke flag definitions into the public header, add helpers for resolving table names, strings, blobs, GUIDs, tokens, attributes, assembly metadata, and P/Invoke maps, and introduce standalone Portable PDB parsing and source lookup support.
2026-09-25 05:38:43 +10:00
dmex 7dc067277c Add crypto provider discovery API
Expose provider selection and capability queries in phcrypt, including BCrypt ML-DSA detection, incremental hash entry points, and fixed ML-DSA size constants. The update also tightens SymCrypt wrappers with stricter parameter and buffer validation, safer constant-time padding handling, and broader API documentation for the expanded crypto surface.
2026-09-25 05:12:26 +10:00
dmex 5103ab3d04 Update phbasesup.h 2026-09-25 05:10:31 +10:00
dmex 344f72c6b3 Update phbasesup.h 2026-09-25 05:10:10 +10:00
dmex a774b38974 Update phbasesup.h 2026-09-25 05:09:57 +10:00
Johnny Shaw e9bfb40ca8 phconfig update os builds 2026-09-15 13:15:26 -06:00
Johnny Shaw 23103147ed phlib add a way to remove a json object member 2026-09-11 00:13:36 -06:00
Johnny Shaw 98138c3c36 AgentTools page and sort every list tool 2026-09-08 19:04:52 -06:00
Johnny Shaw 5231e5458d verify pin build cert with validator 2026-09-08 10:07:43 -06:00
Johnny Shaw 3eeb166019 AgentTools fix smoke-test findings and rework consent flow 2026-09-07 16:53:32 -06:00
Johnny Shaw 98af5bc88a AgentTools expand the tool surface 2026-09-07 16:52:40 -06:00
Johnny Shaw fa64b7ab36 AgentTools initial commit 2026-09-07 16:52:33 -06:00
Johnny Shaw eea3b085cd treenew fix stack overflow inserting nodes of very deep trees 2026-09-02 19:04:55 -06:00
Johnny Shaw 39493fa785 treenew fix touch scroll with custom scrollbars 2026-08-31 01:15:04 -06:00
Johnny Shaw b5313f29c1 mapimg bdd parser fixes 2026-07-30 21:01:03 -06:00
Johnny Shaw c47710ea79 mapimg bdd parser update 2026-07-30 21:01:01 -06:00
Johnny Shaw 6d11476a35 mapimg bdd tree parsing 2026-07-30 21:00:53 -06:00
dmex 3b6ce92a80 Validate file pool segment shift on load
Improve file pool initialization by rejecting headers with out-of-range SegmentShift values and returning STATUS_FILE_CORRUPT_ERROR before any unsafe size/offset calculations. Also replaced hardcoded SegmentShift bounds in parameter validation with new shared constants (PH_FP_SEGMENT_SHIFT_MIN/MAX) in filepool.h to keep limits consistent across create/load paths.
2026-07-16 14:46:38 +10:00
dmex 6778ce56d7 Update graphscroll.h 2026-07-14 02:57:38 +10:00
dmex 741fe274ad Resolve remaining resize/redraw painting issues and tabnew features
Reworks the TabNew control around message-based helpers and centralized layout flushing, adds new flags/messages (including thin-tab metrics), and improves font/theme/DPI handling, painting, and delete notifications. Page tracking is now synchronized through item-to-page links, with safer delete-all behavior and consistent page index updates after insert/move/delete.

Main window tab handling was migrated to the new TabNew wrappers/atom creation path, including selection and layout save/restore calls, and now resyncs cached page indexes on selection changes so reordered tabs activate the correct page.
2026-07-12 02:02:40 +10:00
dmex cd9a320750 Add imagelist drag drop 2026-07-09 09:46:15 +10:00
dmex d66321177b Fix various theme tab, search, and propsheet 2026-07-09 08:36:18 +10:00
NotEnsoul 3e6ce5a815 HardwareDevices: Fix options menu navigation (#2974) 2026-07-08 06:03:29 +10:00
Johnny Shaw 3d22a72995 secedit fix hang 2026-07-05 00:33:53 -06:00
Johnny Shaw 5dd9d0b0f7 hndl afd prop fix hangs 2026-07-05 00:33:53 -06:00
Johnny Shaw be96f9adee hndl afd search hang fix 2026-07-05 00:33:53 -06:00
dmex 752aca989f Update seceditp.h 2026-07-05 14:36:41 +10:00
dmex 70c0fda362 Improve dark theme cleanup 2026-07-04 22:50:57 +10:00
dmex 20be2b06a3 Add PhGetKitsDebuggersDirectory 2026-07-04 18:39:25 +10:00
dmex bb44dcc12a Add UTF-8 encoding support to string search 2026-07-01 14:19:00 +10:00
dmex ab1b8466d5 Fix #2957 2026-07-01 06:02:07 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex 41fef7bf7d Add PH_THEME_MODE enum to guisup theme API 2026-06-28 11:14:51 +10:00
dmex cc75c999f9 PH_NAMED_PIPE_PREFIX_TYPE 2026-06-27 22:59:35 +10:00
dmex a8427b1a5a Fix theme mode handling and UI redraw issues 2026-06-27 22:47:03 +10:00
dmex ca6af0ea2d Refactor UI buffering and propsheet behavior 2026-06-27 17:00:05 +10:00
dmex 4ed3e94a01 Add window targeting API and overlay 2026-06-21 17:22:37 +10:00
dmex a117f7175b Add limited module enumeration callback 2026-06-21 15:19:46 +10:00
dmex 6dd47437e4 Add VScrollThumbTracking to tree context 2026-06-21 15:08:40 +10:00
dmex f378df839b Update graphprp.h 2026-06-21 14:03:11 +10:00
dmex 851f0060a8 Use PhGetClassName and add COM helper macros 2026-06-21 09:31:31 +10:00
dmex 05200ae6d4 Optimize treenew layout and painting cache
Introduce a layout geometry cache to avoid redundant MoveWindow/SetWindowPos/TTM_NEWTOOLRECT calls: add cache fields to the context and PhTnpInvalidateLayoutCache(), and call it on font/settings/theme/DPI changes. Replace per-row CreateRectRgn/GetClipRgn/DeleteRgn with a single SaveDC/RestoreDC bracket in PhTnpPaint to eliminate O(N) kernel region allocations during WM_PAINT. Other changes: update scrollbars, add a small stack buffer optimization for column reorder arrays, use SWP_NOOWNERZORDER when positioning tooltips, and minor formatting/fixes in layout and notify handling.
2026-06-20 02:14:11 +10:00