mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-21 23:37:54 +08:00
15 lines
466 B
C#
15 lines
466 B
C#
|
using System;
|
|||
|
using System.Runtime.InteropServices;
|
|||
|
|
|||
|
namespace ManagedCommon
|
|||
|
{
|
|||
|
internal static class NativeMethods
|
|||
|
{
|
|||
|
[DllImport("kernel32.dll", SetLastError = true)]
|
|||
|
internal static extern IntPtr OpenProcess(uint processAccess, bool bInheritHandle, int processId);
|
|||
|
|
|||
|
[DllImport("kernel32.dll", SetLastError = true)]
|
|||
|
internal static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds);
|
|||
|
}
|
|||
|
}
|