[DllImport("kernel32.dll", SetLastError=true)]
static extern bool IsProcessCritical(IntPtr hProcess, ref bool Critical);
Declare Function IsProcessCritical Lib "kernel32.dll" (hProcess As IntPtr, ByRef Critical As Boolean) As Boolean
None.
Do you know one? Please contribute it!
Available in Windows 8.1 [desktop apps only], Windows Server 2012 R2 [desktop apps only]
Please add some!
{
var procStatus = false;
if (!IsProcessCritical(Process.GetCurrentProcess().Handle, ref procStatus))
{
procStatus = false;
}
return procStatus;
}