NtOpenProcess

[DllImport("ntdll.dll", SetLastError = true)]
public static extern int NtOpenProcess(
   out IntPtr ProcessHandle,
   uint DesiredAccess,
   IntPtr ObjectAttributes,
   ref CLIENT_ID ClientId
);

Microsoft documentation: Link

Last updated