mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
Fix for
Severity Code Description Project File Line Suppression State Warning CA1401 P/Invoke method 'OpenProcess' should not be visible PowerLauncher C:\Repos\PowerToys\src\modules\launcher\PowerLauncher\App.xaml.cs 125 Active
This commit is contained in:
@@ -122,7 +122,7 @@ namespace PowerLauncher
|
|||||||
}
|
}
|
||||||
|
|
||||||
[DllImport("kernel32.dll", SetLastError = true)]
|
[DllImport("kernel32.dll", SetLastError = true)]
|
||||||
public static extern IntPtr OpenProcess(uint processAccess, bool bInheritHandle, int processId);
|
private static extern IntPtr OpenProcess(uint processAccess, bool bInheritHandle, int processId);
|
||||||
|
|
||||||
[DllImport("kernel32.dll", SetLastError = true)]
|
[DllImport("kernel32.dll", SetLastError = true)]
|
||||||
private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds);
|
private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds);
|
||||||
|
|||||||
Reference in New Issue
Block a user