Commit Graph

104 Commits

Author SHA1 Message Date
dmex c350f47000 WindowExplorer: Add extra properties and overlay
Adds major WindowExplorer improvements: a layered highlight overlay path (with setting support) and new Window Properties tabs for UI Automation data and recursive child window inspection. Expands General/Class details with window unique ID, class atom name resolution, and additional class style flags, while wiring new column settings and context actions. Also includes API/name updates for newer prop-sheet/theme helpers and targeted GDI/resource cleanup fixes in highlighting and snapshot code.
2026-07-24 21:23:48 +10:00
dmex fc3ccd19e4 Update copyright headers 2026-07-05 10:34:37 +10:00
dmex 6eed962e3f WindowExplorer: Add window provider model support
Add new window provider and event-driven updates. The windows UI now supports pause/resume updates, richer Options (message-only/non-visible enumeration, view modes, icon toggles, snapshot finder), and improved command events. Property handling was migrated to the newer `PhPropSheetNew` builder flow, with page identity persistence, resized/layout-aware pages, and an Options menu on the properties host. The update also expands window utility helpers (visibility, icons, DWM/automation checks, remote destroy/end task, snapshot selection, tab/app metadata), adds DWM attributes column persistence, introduces new settings/resources/IDs, and wires the new source into CMake/VS projects.
2026-06-27 17:04:19 +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 16e431547e Refactor ListView handling in wndprp.c 2026-01-16 05:56:30 +11:00
dmex e1a379072d Update settings 2025-12-26 23:46:28 +11:00
dmex 2af6c0b474 Plugins: Tidy up plugin interface and Treelists 2025-09-22 19:46:51 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
ge0rdi a201a1faf0 WindowExplorer: fix premature context freeing in WepResolveSymbolFunction (#2362)
Context was inserted to `ResolveListHead` list already. It will be freed
when removed from the list.

This regression was introduced in b5c8ece .

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2025-01-03 11:52:17 -07:00
dmex b037a499bd Fix build 2024-12-02 06:11:32 +11:00
dmex 114fbf0a53 Update to the latest SDK 2024-12-02 04:54:13 +11:00
dmex b5c8ece612 Tidy up 2024-11-30 06:10:41 +11:00
dmex de6d1c9c11 Update to latest SDK 2024-09-09 07:33:45 +10:00
dmex 6bd138023a WindowExplorer: Fix deadlock querying window fonts 2024-06-02 07:30:06 +10:00
dmex 8851f220b3 WindowExplorer: Add WS_EX_PALETTEWINDOW 2023-12-11 07:22:20 +11:00
dmex 15a20daa6f Partial revert bfed61f9a 2023-11-22 12:02:56 +11:00
dmex bfed61f9a3 Update typedefs 2023-11-22 08:36:29 +11:00
dmex 3e9965d9fd Update SymbolProvider to latest SDK 2023-10-07 20:32:49 +11:00
dmex 228b228c69 Update AppResolver error handling and improve string usage 2023-07-17 03:02:14 +10:00
dmex 2e7968b898 Add PH_WINDOW_TIMER_DEFAULT 2023-07-06 08:50:31 +10:00
dmex 2b752a6c41 WindowExplorer Add destroy menu, Add cloaked and IAM band 2023-06-21 10:35:31 +10:00
dmex 2267409c4e WindowExplorer: Add current display, Add property editor 2023-06-12 17:06:54 +10:00
dmex 7856014a07 WindowExplorer: Add icons and update properties window layout 2023-06-09 01:02:05 +10:00
dmex 20f40fb78b WindowExplorer: Fix background symbol provider initialization 2023-06-05 10:30:48 +10:00
dmex e76bf29db5 WindowExplorer: Fix showing symbols for system windows 2023-05-16 15:12:20 +10:00
dmex 18b875b753 WindowExplorer: Add window base class name 2023-05-16 02:24:19 +10:00
dmex d1b61c4188 Add handle 2023-03-06 13:14:15 +11:00
dmex a1f78c20df Remove whitespace 2023-02-15 11:28:07 +11:00
dmex 711b833ff7 Update headers references for mapldr.h 2023-02-10 02:04:40 +11:00
dmex 765cf68532 WindowExplorer: Add support for enumerating message-only windows, Fix class window procedure query, Update DPI texts to match processes column 2022-10-11 06:41:58 +11:00
dmex e9b1a7865f Remove whitespaces 2022-09-13 15:24:15 +10:00
dmex 2f0651ece6 Update solution (#1306)
* Fix MSVC incorrectly loading symbols for non-executable images loaded on Windows 7
* Add PhCopyFileWin32
* Add PhGetApplicationDirectoryFileNameWin32
* Add PhGetKernelDriverSystemStart
* Add PhGetTemporaryDirectoryRandomAlphaFileName
* Update branding, guids and strings
* Improve temporary filename generation
* BuildTools: Fix Windows SDK detection #1305
* UserNotes: Add support for saving process boost priority #1244
* Add plugin support for subclassing priority boost menu
* Fix changing process affinity on Windows 7 #1299
* ExtendedTools: Add WDDM 3.1 versioning, Fix GPU graph values sometimes not matching Taskmgr
* WindowExplorer: Move dpi context value, Fix missing window icons
* Fix clang builds
* BuildTools: Fix Windows SDK detection #1305
2022-07-17 13:01:56 +10:00
Johnny Shaw c6e44b2fea Update copyright and license (#1256) 2022-06-13 20:33:49 -06:00
henrypp e145ccbd5f Added window dpi context (#1235) 2022-06-05 20:39:43 +10:00
dmex 0469e1e3b9 Update PhLoadModuleSymbolProvider for NT paths 2021-12-14 06:10:12 +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 bb8f9d5032 WindowExplorer: Add EnableWindowIcons setting for showing window icons 2021-05-11 16:57:51 +10:00
dmex a9654ad80d Update module provider filename for native paths 2021-04-04 13:38:53 +10:00
Johnny Shaw b0a977f3bf PhLoadLibrarySafe and ban LoadLibrary (#835) 2021-03-16 23:20:05 +11:00
dmex de96109c20 WindowExplorer: Add EnableWindowPreview setting 2021-01-21 12:54:33 +11:00
dmex 798ca1f85f Add initial stdc17 support, Fix macro expansion 2020-09-20 23:54:46 +10:00
dmex cad5e577a2 Update wndprp.c 2020-07-29 19:23:37 +10:00
dmex fdda16a43e Add PhSetApplicationWindowIcon 2020-07-02 16:58:06 +10:00
dmex bd0c061cf8 WindowExplorer: Add window preview tab 2020-06-03 03:49:21 +10:00
dmex 742f93ab7b WindowExplorer: Add automation server detection to window properties 2020-02-14 15:22:24 +10:00
dmex 220b9a09d6 WindowExplorer: Add FindWindow button #557, Add alternate enumeration #537, Add wndextra property, Fix various issues 2020-02-12 21:26:46 +10:00
Kasper Fabæch Brandt 1959a38844 Fix analyzer warnings from WindowExplorer plugin. (#529) 2019-12-23 09:25:24 +11:00
dmex 7b3b922ae4 WindowExplorer: Improve path prefix resolution 2019-06-08 00:18:42 +02:00
dmex 6c0bcde086 WindowExplorer: Add font name to window properties 2019-05-24 22:48:31 +02:00
dmex 57c0463fbe WindowExplorer: Update window context handling 2019-05-15 22:20:08 +02:00