RtlSetProcessIsCritical (ntdll)
Last changed: -116.96.47.13

.
Summary

C# Signature:

[DllImport("ntdll.dll", SetLastError=false)]
static extern uint RtlSetProcessIsCritical(bool bNew, IntPtr expectsZero, bool bNeedsScb);

User-Defined Types:

None.

Alternative Managed API:

None.

Notes:

The expectsZero parameter is actually something to read the old value.

Tips & Tricks:

Please add some!

Sample Code:

Process.EnterDebugMode();

RtlSetProcessIsCritical(1, 0, 1);

Documentation