[DllImport("ntdll.dll", SetLastError = true)] public static extern bool IsProcessCritical( IntPtr hProcess, out bool Critical );
Microsoft documentation: Link
Last updated 1 year ago