Commit Graph

2011 Commits

Author SHA1 Message Date
dmex 349d03e9f5 Add network hashset and PH_PROVIDER_UPDATED_EVENT
Introduce a generic PH_PROVIDER_UPDATED_EVENT instead of encoding RunCount via UlongToPtr. Replace the network provider's hashtable with a simple hash set implementation: add PH_HASH_ENTRY to PH_NETWORK_ITEM, implement PhHashNetworkItem and PhCompareNetworkItem, maintain PhNetworkHashSet array and count, and update all lookup/enum/remove/add paths to use the new hash set and locks.
2026-05-09 18:51:01 +10:00
dmex decd0c9e93 Add nativesession.c to the phlib VS project 2026-05-09 15:32:06 +10:00
dmex 25ff6bd2f9 Use PhpAggregateFieldTotal for CPU usage 2026-05-09 15:03:16 +10:00
dmex 484960305c Replace WinStation with nativesession.c 2026-05-09 14:55:08 +10:00
Zack-src 45af189759 options: enforce minimum window size to prevent controls disappearing on resize (#2902) 2026-05-06 06:08:18 +10:00
dmex ce207e58f6 Update SystemInformer.def 2026-05-05 23:34:49 +10:00
dmex 9e02a4def5 Update SystemInformer.def 2026-05-05 23:28:31 +10:00
dmex e810980406 Update options.c 2026-05-05 23:22:20 +10:00
dmex 80f2d0848e Update mainwnd.c 2026-05-05 23:13:07 +10:00
dmex aa965164a2 Add PhEnableHighResolution and rename setting 2026-05-05 21:36:06 +10:00
dmex 9ec69e3908 Use PhIsObjectTypeIndex for file object checks
Remove the static PH_INITONCE and cached fileObjectTypeIndex and the init-once block. Replace the direct comparison against the cached file object type index with a call to PhIsObjectTypeIndex(handleInfo->ObjectTypeIndex, PhHandleObjectTypeFile). This simplifies the work-queue path, avoids one-time initialization complexity, and makes the file-type check more robust.
2026-05-05 20:46:19 +10:00
dmex e6b35af568 Update handle provider, Add async handle query and fix threading issues
Introduce an asynchronous handle query pipeline and UI improvements for handle resolution. Added query data structures and a stage-1 worker (PhpHandleQueryStage1Worker), a SLIST-based QueryListHead on providers, queueing (PhpQueueHandleQueryStage1), flushing/clearing (PhpFlushHandleQueryData / PhpClearHandleQueryData) and helpers to fill/cleanup results. Handle items gain NameResolved and JustProcessed fields; names/type info and file-sharing flags are resolved asynchronously and applied without blocking the main enumeration.

UI: show "Resolving...." for name cells while resolution is pending and only hide "unnamed" handles when NameResolved is true. Added a new menu item to toggle handle snapshots. Also clear various cached string refs when updating handle nodes.

Other changes: replaced type-name sort with a numeric compare on TypeIndex, refactored hashset add/remove/reference helpers (PhpLookupHandleItem, PhpAddHandleItem, PhpRemoveHandleItem, PhReferenceHandleItem), and wired queuing of stage-1 queries after new handle detection. These changes improve responsiveness and avoid long synchronous queries during handle enumeration.
2026-05-05 20:38:38 +10:00
dmex 6a11529cc1 Refactor DPI/scalable settings and add MI support 2026-05-05 20:32:46 +10:00
Zack-src 3682f79b0e memsrcht: parallel memory string scan with performance optimizations (#2897) 2026-05-05 10:27:42 +10:00
Zack-src ab426c41bd hndlprp: display ALPC port state in handle properties (#2896) 2026-05-05 07:47:27 +10:00
dmex c9b75fda3c Improve DPI handling and various fixes 2026-05-05 02:31:17 +10:00
dmex cb9468dc2b Update srvcr.c 2026-05-05 02:08:04 +10:00
dmex 38be0cddd4 Use safe size math for ACL and SD operations 2026-05-05 02:07:49 +10:00
Johnny Shaw fc46623c5f add client id headers 2026-05-03 19:12:59 -06:00
dmex 9467d5f646 Improve DPI handling, icon scaling, metrics (#2894) 2026-05-02 09:13:06 +10:00
dmex e082ed8421 Update srvctl.c 2026-04-30 07:33:07 +10:00
dmex dc9c552ceb Update srvlist.c 2026-04-30 07:33:07 +10:00
dmex 42213a07d0 Update srvprp.c 2026-04-30 07:33:07 +10:00
dmex a6443d07c0 Remove global PhSystemDpi, PhSmallIconSize, PhLargeIconSize
Eliminate the main-window-DPI globals that bleed across dialogs on
secondary monitors. Window-aware code now passes its own DPI:

- Delete PhSystemDpi, PhSmallIconSize, PhLargeIconSize and
  PhGuiSupportUpdateSystemMetrics; remove the mainwnd.c invocation
  on WM_DPICHANGED.
- PhGetApplicationIcon and PhGetStockApplicationIcon now require a
  WindowDpi parameter; PhGetApplicationIconEx is folded into
  PhGetApplicationIcon. PhGetStockApplicationIcon keeps the shared
  icon contract via a 4-slot DPI-keyed cache so multiple monitors
  coexist without thrash.
- All ~50 callers updated to source DPI from their owning window
  (PhGetWindowDpi for hwnd-bearing call sites; PhGetTaskbarDpi for
  the tray icon; PhGetSystemDpi for window-class registration and
  parentless task dialogs).
- PhSetApplicationWindowIcon now thin-wraps PhSetApplicationWindowIconEx
  with PhGetWindowDpi(hwnd), so the 63 legacy call sites get
  per-window-DPI icons without per-site edits.
- srvprv.c and mainwnd.c read PhProcessImageListWindowDpi instead
  of PhSystemDpi/PhSmallIconSize.X for service and process icons.
2026-04-26 22:49:05 +10:00
dmex f06954cba3 Add imports for new ntdll functions 2026-04-26 17:37:37 +10:00
dmex 6ecc993e09 Add support for handle attributes without the kernel driver 2026-04-26 14:11:55 +10:00
dmex a8265d962f Add extended energy statistics and samples 2026-04-23 15:22:24 +10:00
dmex 43756f688b Update SystemInformer.def 2026-04-23 13:55:39 +10:00
dmex 89e72373b2 Update thrdstk.c 2026-04-23 13:54:55 +10:00
dmex 777b033f01 Update phsettings.h 2026-04-23 13:53:34 +10:00
dmex 796bbd9cce Update memsrch.h 2026-04-23 11:23:13 +10:00
dmex 228387e01d Add energy statistics to process statistics
Introduce an Energy category and numerous ENERGY_* statistic indices to the process statistics code, and register them in the list view (RS3+ guarded). Add numeric extraction, sampling, median/average calculation (PhpUpdateProcessStatisticsSamples, PhpGetProcessStatisticsNumericValue, comparator and sample helpers) and formatting helpers for energy values (mJ, J, Wh, cycle percentage). Parse PROCESS_EXTENDED_ENERGY_VALUES (PrintProcessExtendedEnergyValues, conversion helpers) via PhGetProcessEnergyValues with a fallback to existing extension data. Track min/max/diff for new energy fields and integrate samples into the update/redraw flow. Allocate and free sample buffers in the dialog init/destroy, and add "Average" and "Median" columns to the UI.
2026-04-23 08:58:36 +10:00
dmex f481f99dd8 Fix #2884 2026-04-23 08:54:05 +10:00
dmex 034ec2f3e0 Add bulk memory string search and string search progress handling 2026-04-23 08:35:23 +10:00
dmex 67d7aa3e45 Update dialog fonts on DPI changes 2026-04-23 07:27:01 +10:00
dmex b6e832c7fe Uncomment workaround for KphObjectProcessImageFileName 2026-04-23 07:20:48 +10:00
dmex 6c9a68740d Move runas package to separate file 2026-04-23 07:19:56 +10:00
dmex 0961fa0dca Fix #2858 2026-04-23 01:28:08 +10:00
dmex f79891bb29 Fix typos, add annotations, and correct release 2026-04-19 04:08:53 +10:00
dmex 9188fde6ae Fix typo from b367780d9 2026-04-19 01:43:13 +10:00
Johnny Shaw b4993138c5 ksisup fix outdated ksidll handling 2026-04-18 09:30:41 -06:00
dmex b367780d96 Runas: add comments and PhRunAsGetLogonId 2026-04-18 23:59:02 +10:00
Johnny Shaw 195fe6bae3 informer fix open result display 2026-04-18 00:05:28 -06:00
Johnny Shaw f051236b7a informer use context capture 2026-04-18 00:05:25 -06:00
Johnny Shaw 668c193ab4 informer adjust columns 2026-04-18 00:05:25 -06:00
Johnny Shaw f7e14f17a2 informer improve reg details 2026-04-18 00:05:24 -06:00
Johnny Shaw 44935ae130 informer display kernel handles 2026-04-18 00:05:24 -06:00
Johnny Shaw 2c08560303 informer display silo messages 2026-04-18 00:05:21 -06:00
Johnny Shaw 4846ff480f informer display file access masks 2026-04-18 00:05:21 -06:00
dmex 1b38a98517 Update plugin.c 2026-04-17 03:38:44 +10:00