fix(build): declare PROCESS_QUERY_LIMITED_INFORMATION locally
Winapi.Windows doesn't expose the WinNT.h constant — dcc32 E2003. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1120,6 +1120,9 @@ end;
|
|||||||
// Can't-tell (OpenProcess denied, which protected/elevated processes do)
|
// Can't-tell (OpenProcess denied, which protected/elevated processes do)
|
||||||
// counts as elevated: better an honest "blocked" than a silent no-op.
|
// counts as elevated: better an honest "blocked" than a silent no-op.
|
||||||
function IsWindowProcessElevated(AHwnd: HWND): Boolean;
|
function IsWindowProcessElevated(AHwnd: HWND): Boolean;
|
||||||
|
const
|
||||||
|
// Missing from Winapi.Windows — Win32 constant (WinNT.h, Vista+).
|
||||||
|
PROCESS_QUERY_LIMITED_INFORMATION = $1000;
|
||||||
var
|
var
|
||||||
LPid: DWORD;
|
LPid: DWORD;
|
||||||
LProc, LToken: THandle;
|
LProc, LToken: THandle;
|
||||||
|
|||||||
Reference in New Issue
Block a user