Commit Graph

191 Commits

Author SHA1 Message Date
dmex 025db3a0ec Fix UI init and token diagnostics
This change moves main-window setup to WM_CREATE to avoid invalid initial layouts, improves dialog focus and window-placement restoration, and includes a wide set of Win32/UI correctness fixes across the app. It also adds thread-stack and Wow64 safety handling, improves token details (authority/RID and elevated-privilege highlighting), and broadens the low-level documentation comments. The update also adjusts a few build settings in CustomBuildTool to improve runtime behavior.
2026-10-01 23:49:16 +10:00
dmex dbe15e49de Move envdlg to main program f9fa4a369 2026-07-19 08:34:23 +10:00
dmex 01b9240f51 Avoid activating the main window during startup #2989
This prevents the main tab selection from activating the main window and stealing foreground focus from the user when starting hidden by default. Focus is still forwarded later via `PhMwpOnSetFocus` when the window is activated. Fixes #2989.

Co-Authored-By: Zeroes1 <Zeroes1@gmail.com>
2026-07-17 07:35:00 +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 efa63c8e5d Theme, secedit, and misc fixes 2026-07-05 12:04:49 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex a8427b1a5a Fix theme mode handling and UI redraw issues 2026-06-27 22:47:03 +10:00
dmex 1401c7c9b8 Update mainwnd.c 2026-06-16 10:58:17 +10:00
dmex 1f821d3828 Integrate new tab control and layout persistence 2026-06-16 08:49:11 +10:00
Johnny Shaw 0c8673a4b6 OnlineChecks settings update and partner prompt 2026-06-07 13:26:02 -06:00
dmex b81fcdc109 Add PINVOKE_START_ROUTINE and flush invoke queue 2026-05-11 05:03:56 +10:00
dmex 80f2d0848e Update mainwnd.c 2026-05-05 23:13:07 +10:00
dmex 6a11529cc1 Refactor DPI/scalable settings and add MI support 2026-05-05 20:32:46 +10:00
dmex 9467d5f646 Improve DPI handling, icon scaling, metrics (#2894) 2026-05-02 09:13:06 +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 b546c94309 Add extended highlighting and process monitor flags
Introduce many new highlighting settings and UI grouping for Options -> Highlighting, including thread, network, environment, token, memory and module color options. Add menu flags to highlight native/mapped modules and several thread wait types; wire them into dialogs and list handling. Rename and use cached process monitor settings (PhCsEnableProcessMonitor / PhCsProcessMonitorLookback / PhCsProcessMonitorCacheLimit) and update related checks. Fix TreeNew invalidation/sorting behavior to avoid unconditional rebuilds and ensure proper node invalidation. Populate default settings and cached getters for the new options.
2026-04-12 11:50:30 +10:00
dmex e83a1c690c Add Performance Monitor tools menu 2026-04-09 21:37:16 +10:00
Johnny Shaw cde7a14478 process monitor window 2026-03-29 19:43:47 -06:00
dmex 0e270a053a Improve parameter name, type-safety, and SAL annotation consistency 2026-03-07 01:24:03 +11:00
dmex e866916f9e Update comments 2026-02-21 23:30:39 +11:00
dmex 41f8b7aef7 Add high-resolution provider (low-latency mode) support 2026-02-05 16:51:12 +11:00
Johnny Shaw 5bdf86bd07 kph adjust dyndata messaging 2026-02-01 17:45:26 -07:00
dmex e747160b26 Add SystemInformer_GetMainMenu 2026-02-01 11:38:28 +11:00
dmex 7eb2af2554 Update mainwnd.c 2026-02-01 00:16:15 +11:00
dmex ef2197a670 Add settings store descriptors 2026-01-31 19:06:06 +11:00
dmex a8c0eb56ec Fix SAL annotations 2026-01-06 00:37:59 +11:00
dmex 00882b42aa Add initial support for invoke queue 2025-12-31 16:10:11 +11:00
dmex 40fa4f0c7b Update comments 2025-12-27 17:40:39 +11:00
dmex e1a379072d Update settings 2025-12-26 23:46:28 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex d6fa11f143 Update SAL annotations and add stack allocations for some types 2025-10-08 15:43:41 +11:00
dmex 1f8a940fc1 Tidy up 2025-09-22 23:29:14 +10:00
dmex 5a215a872c Update settings 2025-09-22 20:30:11 +10:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 6b48aeb4fb Update mainwnd.c 2025-08-20 23:30:08 +10:00
dmex 6c20c78fb6 Merge minor fixes from dev branch 2025-08-20 11:54:19 +00:00
diversenok 7a51170f51 Add COM permission dialogs (#2651) 2025-08-14 03:39:38 +10:00
Johnny Shaw 0fa1b4e2ce improve thread priority columns and handling 2025-07-21 00:20:20 -06:00
Johnny Shaw 2fc491ec5b proctree view collapse and expand all 2025-07-06 23:25:20 -06:00
Johnny Shaw 1547773891 proctree sort root processes option 2025-07-06 18:49:03 -06:00
Johnny Shaw 2e5853fd87 proctree sort child processes option 2025-07-06 11:46:37 -06:00
dmex 38bcb6e9f8 Remove duplicate environment and CSV text header 2025-06-28 15:24:19 +10:00
Johnny Shaw 4586570fe1 combine tabs view menus 2025-06-18 20:32:45 -06:00
Johnny Shaw afbd78cd2e implement user list 2025-05-30 13:43:03 -06:00
dmex 3f55a60c98 re-organized phlib 2025-05-22 07:48:42 +10:00
dmex ed62e01bcb Add separate window callbacks 2025-04-03 10:25:10 +11:00
dmex 6d2aee0ca3 Revert "Add separate window callbacks"
This reverts commit bb0be06e13.
2025-04-03 10:20:04 +11:00
dmex bb0be06e13 Add separate window callbacks 2025-04-03 10:14:05 +11:00
dmex 32726691d4 Add filename fallback #2478 2025-04-03 05:56:37 +11:00
Johnny Shaw bc726f0a5d fix process context menu open file location 2025-03-31 23:27:54 -06:00