Commit Graph

112 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
Johnny Shaw e9bfb40ca8 phconfig update os builds 2026-09-15 13:15:26 -06:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +10:00
Johnny Shaw 9acc62f42f kph harden dyndata lookup 2026-06-11 21:56:21 -06: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 f79891bb29 Fix typos, add annotations, and correct release 2026-04-19 04:08:53 +10:00
Johnny Shaw b4993138c5 ksisup fix outdated ksidll handling 2026-04-18 09:30:41 -06:00
dmex 6300cb44b2 Rename types 2026-04-08 10:13:59 +10:00
dmex fe00113a15 Rename release channel APIs to Build variant 2026-04-08 09:27:44 +10:00
dmex 299dfc1f2c Update ksisup.c 2026-04-08 05:28:07 +10:00
dmex bd75995e51 Fix _snwprintf buffer handling in ksisup.c
Adjust buffer handling around _snwprintf to avoid out-of-bounds writes
2026-03-31 09:59:40 +11:00
Johnny Shaw 10b6648c04 remove ksidbg 2026-03-29 20:57:10 -06:00
Johnny Shaw e89dd7ded5 kph make create notif distinct state 2026-03-13 22:44:04 -06:00
Johnny Shaw de750fb5b6 kph formalize informer activation 2026-03-13 22:44:03 -06:00
Johnny Shaw 65753d0399 ksisup use ksi error for reboot check 2026-02-14 11:58:36 -07:00
Johnny Shaw 81a973fa6b ksisup unload driver in portable mode 2026-02-14 11:43:09 -07:00
Johnny Shaw 4d1e309e1e ksisup fix message title confusion 2026-02-08 16:30:41 -07:00
Johnny Shaw 2094b4771f ksisup fix uninitialized var 2026-02-01 18:43:41 -07:00
Johnny Shaw 5bdf86bd07 kph adjust dyndata messaging 2026-02-01 17:45:26 -07:00
Johnny Shaw 3a6cc3b582 kph ratelmt 2026-02-01 17:45:24 -07:00
Johnny Shaw 94d451e36a kph mitigate altitude stomping 2026-02-01 17:45:19 -07:00
Johnny Shaw 68c624a9f9 kph minimal system process name parameter 2026-02-01 17:45:17 -07:00
Johnny Shaw 240b482854 kph minimal system process 2026-02-01 17:45:17 -07:00
Johnny Shaw fd70a88fa8 kph restart self through tcb 2026-02-01 17:45:12 -07:00
Johnny Shaw e45b592282 informer process monitor 2026-02-01 17:45:09 -07:00
Johnny Shaw f5ca1149cf kph ring buffer settings 2026-02-01 17:45:09 -07:00
dmex 401299b59a Add KSI_ONLINE_PLATFORM_SUPPORT 2026-01-16 08:04:00 +11:00
dmex ffa34b180e Update WINDOWS_MAX for 26H1 2025-12-08 22:12:01 +11:00
dmex 5fc923b97c Add initial support for 26H1 2025-12-06 10:43:51 +11:00
dmex f6224b9615 Update comments, Update SAL annotations, Fix typos and memory leak 2025-12-06 08:22:09 +11:00
dmex 5a215a872c Update settings 2025-09-22 20:30:11 +10:00
henrypp 68c3b93082 add win11 25h2 (#2616)
* add win11 25h2

* fix KsiGetWindowsVersionString

* fix WINDOWS_NEW
2025-07-13 11:34:09 -06:00
Johnny Shaw 5577d7d662 kph fix native load 2025-07-12 14:38:06 -06:00
Johnny Shaw 034e9f8166 fix KsiGetDynData from errant commit 3f55a60 2025-06-01 11:30:02 -06:00
dmex 3f55a60c98 re-organized phlib 2025-05-22 07:48:42 +10:00
dmex 4bb9a69856 Update SAL Annotations 2025-05-22 00:00:42 +10:00
dmex 6317244ea6 Restructured common code 2025-05-07 08:29:22 +10:00
dmex 7b0320de00 Make strings CONST 2025-04-20 08:44:08 +10:00
dmex 21b740464f Add TD_SHIELD_ERROR_ICON 2025-03-22 19:28:26 +11:00
dmex 480355d334 Add CloseObject for handle properties 2025-03-22 17:35:34 +11:00
dmex 23c3478331 Update text/json methods to return status 2025-03-21 19:57:32 +11:00
Johnny Shaw fa3e9a4a26 tidy up ksi status 2025-03-14 22:29:27 -06:00
dmex 4e687a4d4a Add PhQueryKphCounters 2025-03-13 21:14:14 +11:00
dmex 0affd41233 Update PPH_STRINGREF to PCPH_STRINGREF 2025-02-25 17:24:27 +11:00
dmex e87953fe90 Remove duplicate KsiGetKernelFileNameInternal 2025-02-03 06:33:06 +11:00
Johnny Shaw 47ab6b764f ksisup alternate load method 2025-01-03 22:49:38 -07:00
Johnny Shaw 5065490f9f ksisup PhShowKsiMessage2 2025-01-03 22:49:38 -07:00
Johnny Shaw 84a7b301ee ksisup make load and unload consistent 2025-01-03 22:49:38 -07:00
Johnny Shaw 96b1460cf6 kphuser revert driver renaming 2025-01-03 22:49:37 -07:00