From af856d7a398f9a122d9176a9b2137d050dbddfea Mon Sep 17 00:00:00 2001 From: PrimeBuild-pc Date: Fri, 16 Oct 2026 11:33:01 +0200 Subject: [PATCH] test: use native full-query access mask in EcoQoS diagnostic --- .../ProcessMemoryPriorityNativeIntegrationTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/ThreadPilot.Core.Tests/ProcessMemoryPriorityNativeIntegrationTests.cs b/Tests/ThreadPilot.Core.Tests/ProcessMemoryPriorityNativeIntegrationTests.cs index 618c986..a0ae44f 100644 --- a/Tests/ThreadPilot.Core.Tests/ProcessMemoryPriorityNativeIntegrationTests.cs +++ b/Tests/ThreadPilot.Core.Tests/ProcessMemoryPriorityNativeIntegrationTests.cs @@ -32,7 +32,7 @@ namespace ThreadPilot.Core.Tests var state = new PowerThrottlingState { Version = PowerThrottlingState.CurrentVersion }; var limitedResult = api.GetPowerThrottling(limited, ref state); var limitedError = api.GetLastWin32Error(); - using var full = api.OpenProcess(ProcessAccessFlags.PROCESS_QUERY_INFORMATION, false, (uint)Environment.ProcessId); + using var full = api.OpenProcess((ProcessAccessFlags)0x0400, false, (uint)Environment.ProcessId); state = new PowerThrottlingState { Version = PowerThrottlingState.CurrentVersion }; var fullResult = api.GetPowerThrottling(full, ref state); var fullError = api.GetLastWin32Error();