From 9184c64ecbb803c325a145b4c456158fc978b547 Mon Sep 17 00:00:00 2001 From: ryanbodrug-microsoft <56318517+ryanbodrug-microsoft@users.noreply.github.com> Date: Wed, 17 Jun 2020 17:38:02 -0700 Subject: [PATCH] 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 --- src/modules/launcher/PowerLauncher/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/launcher/PowerLauncher/App.xaml.cs b/src/modules/launcher/PowerLauncher/App.xaml.cs index 9a714082d7..c036121d25 100644 --- a/src/modules/launcher/PowerLauncher/App.xaml.cs +++ b/src/modules/launcher/PowerLauncher/App.xaml.cs @@ -122,7 +122,7 @@ namespace PowerLauncher } [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)] private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds);