From da1284cfc3017885ee4010536d933bd24970b62e Mon Sep 17 00:00:00 2001 From: r-zakarya <82443831+r-zakarya@users.noreply.github.com> Date: Sun, 12 Jul 2026 04:41:38 +0100 Subject: [PATCH] fix(build): declare PROCESS_QUERY_LIMITED_INFORMATION locally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Winapi.Windows doesn't expose the WinNT.h constant — dcc32 E2003. Co-Authored-By: Claude Opus 4.8 --- delphi-backend/Source/PM.Bridge.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/delphi-backend/Source/PM.Bridge.pas b/delphi-backend/Source/PM.Bridge.pas index 7b3f13e..c214a98 100644 --- a/delphi-backend/Source/PM.Bridge.pas +++ b/delphi-backend/Source/PM.Bridge.pas @@ -1120,6 +1120,9 @@ end; // Can't-tell (OpenProcess denied, which protected/elevated processes do) // counts as elevated: better an honest "blocked" than a silent no-op. function IsWindowProcessElevated(AHwnd: HWND): Boolean; +const + // Missing from Winapi.Windows — Win32 constant (WinNT.h, Vista+). + PROCESS_QUERY_LIMITED_INFORMATION = $1000; var LPid: DWORD; LProc, LToken: THandle;