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:
r-zakarya
2026-07-12 04:41:38 +01:00
parent a602d05b84
commit da1284cfc3
+3
View File
@@ -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;