From 5a68fef331af67171f29933954ddd60d3f5ea629 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 12 Oct 2026 00:34:38 +0400 Subject: [PATCH] Use named debugger access constants --- tools/native-frame-capture/NativeFrameCapture.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/native-frame-capture/NativeFrameCapture.cs b/tools/native-frame-capture/NativeFrameCapture.cs index 47774f5..7546831 100644 --- a/tools/native-frame-capture/NativeFrameCapture.cs +++ b/tools/native-frame-capture/NativeFrameCapture.cs @@ -2509,7 +2509,8 @@ internal static partial class NativeFrameCapture uint debugEventsSeen = 0, debugEventsContinued = 0, lastDebugEventCode = 0; uint debugCreateThreadEvents = 0, debugExitThreadEvents = 0, debugLoadDllEvents = 0; uint debugExceptionEvents = 0, debugSingleStepEvents = 0, lastDebugEventPid = 0, lastDebugEventTid = 0; - const uint ProcessAccessForFrameCapture = 0x0001 | 0x0008 | 0x0010 | 0x0020 | 0x0400 | 0x00100000; + const uint ProcessAccessForFrameCapture = ProcessTerminate | ProcessVmOperation | ProcessVmRead + | ProcessVmWrite | ProcessQueryInformation | Synchronize; FrameSnapshot frame = new FrameSnapshot(); frame.SelectedCameraRequested = selectedCameraInput != null; SelectedCameraState selectedCamera = selectedCameraInput == null ? null