OpenProcess

[DllImport("KERNEL32.dll", ExactSpelling = true, SetLastError = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
public static extern HANDLE OpenProcess(
    PROCESS_ACCESS_RIGHTS dwDesiredAccess, 
    BOOL bInheritHandle,
    uint dwProcessId);

PROCESS_ACCESS_RIGHTS

Last updated