Commit Graph

114 Commits

Author SHA1 Message Date
Johnny Shaw 5819c6b5cb runas fix as service 2026-09-06 12:57:08 -06:00
dmex a8f906270b Remove redundant error checking from runas 2026-07-02 11:10:00 +10:00
dmex 15ec45a121 Update copyright year 2026-07-01 01:43:30 +10:00
dmex a571c6bc19 Build and bug fixes 2026-06-15 05:33:51 +10:00
dmex 4c238f959f Update runas.c 2026-05-30 17:19:21 +10:00
dmex 842312465a Revert runas strict error checking (Fixes # 2890) 2026-05-30 05:25:32 +00:00
dmex d4c5fa793a Add PhValidSecurityDescriptor 2026-05-10 14:39:10 +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
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 6c9a68740d Move runas package to separate file 2026-04-23 07:19:56 +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
dmex b367780d96 Runas: add comments and PhRunAsGetLogonId 2026-04-18 23:59:02 +10:00
dmex 736945e66e add CONST qualifiers to static sort function arrays and use proper _CoreCrt* function-pointer types; 2026-04-10 16:01:36 +10:00
dmex 0e270a053a Improve parameter name, type-safety, and SAL annotation consistency 2026-03-07 01:24:03 +11:00
dmex 4e477590b0 Return ULONG instead of LONG_PTR - window styles are always 32-bit unsigned values 2026-01-16 07:50:47 +11:00
dmex 863ea2db46 Reorganize functions and imports 2026-01-04 07:26:47 +11:00
dmex b86f5d19a0 Update runas.c 2025-12-26 23:32:46 +11:00
dmex cd6822cec8 Add runas permissions, Fix runas suspension 2025-09-28 23:37:43 +10:00
dmex 1f8a940fc1 Tidy up 2025-09-22 23:29:14 +10:00
Johnny Shaw 4c8000db03 fix cmake build 2025-09-07 08:39:52 -06:00
dmex 5423ff7cfb Merge dev branch fixes (#2680) 2025-09-07 05:06:34 +10:00
dmex 4654c488a8 Set directory for runas package 2025-06-18 03:20:11 +10:00
dmex 5de6d88968 Fix run dialog package icon sizes 2025-06-05 09:10:11 +10:00
dmex 868d5ce2b6 Update to latest SDK 2025-05-23 13:23:34 +10:00
dmex 4bb9a69856 Update SAL Annotations 2025-05-22 00:00:42 +10:00
dmex cc58b9a202 Update SAL Annotations and Fix typos 2025-05-15 13:48:46 +10:00
dmex 95ab29e200 Update SAL Annotations and Fix typos 2025-05-15 13:12:48 +10:00
dmex 8f02da7729 Update SAL Annotations 2025-05-15 01:10:28 +10:00
dmex 6317244ea6 Restructured common code 2025-05-07 08:29:22 +10:00
dmex 26b3cb5957 Add PhAddAccessAllowedAce 2025-05-01 09:55:58 +10:00
dmex dd50d92718 Make strings CONST 2025-04-21 00:22:35 +10:00
dmex ae678c4f4b Fix enumeration of users from local only users on domain joined machines #2437 2025-03-02 04:26:35 +11:00
dmex ac2ed17cff Add initial cmake support and fix compatibility issues 2025-02-28 12:18:01 +11:00
dmex 0affd41233 Update PPH_STRINGREF to PCPH_STRINGREF 2025-02-25 17:24:27 +11:00
dmex 8a2756fe65 Ignore runas prompt from phsvc 2025-02-14 04:30:47 +11:00
dmex 57cb958ebd Update to PCPH_STRINGREF 2025-02-11 09:19:06 +11:00
dmex e03516ffda Update to the latest SDK 2025-01-17 18:55:22 +11:00
dmex 5cd2d737f5 Tidy up 2025-01-08 12:13:22 +11:00
dmex fc420be32b Update to latest SDK 2024-12-28 14:07:01 +11:00
Johnny Shaw f6c749329f remaining workaround msvc uninitialized stack bug 2024-12-26 10:27:20 -07:00
dmex 3ee4b7da19 Update to latest SDK 2024-12-23 05:43:37 +11:00
dmex 0e70c3e58d Tidy up and add initial support for permissions 2024-12-13 14:34:59 +11:00
dmex 451eb95469 Update to latest SDK, Update status messages 2024-12-13 12:27:15 +11:00
dmex f8757ab345 Update to the latest SDK 2024-12-01 16:17:11 +11:00
ge0rdi 8255bb904e Few improvements (#2257)
* fix Ctrl+K (search box) handling

- tree view didn't pass keypresses to parent window so it was not
  possible to handle the keyboard combo
- some plugins didn't handle Ctrl+K at all

Fixes #2241

* treenew handle Ctrl+A in common code

* searchbox pressing escape will abandon search

Current search is abandoned and focus is returned to window that
previously had it, instead of closing whole dialog.

* fixup! searchbox pressing escape will abandon search

* Update SystemInformer/searchbox.c

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>

* Update SystemInformer/searchbox.c

---------

Co-authored-by: Johnny Shaw <johnny.shaw@live.com>
2024-10-29 19:04:04 -06:00
dmex f92eab7083 Update SDK for const compatibility
Resolves C++ SDK compatibility issues
2024-10-17 04:33:07 +11:00
dmex c4e86a3f69 Add EnableWarningsRunas 2024-09-22 13:04:21 +10:00