NtDllSetCurrentProcessIsCritical Method

Establish the current process to be considered a critical process.

When attempting to terminate a critical process, brings down the system in a controlled manner.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("NtDll.dll", EntryPoint = "RtlSetProcessIsCritical", 
	SetLastError = true)]
public static void SetCurrentProcessIsCritical(
	bool isCritical,
	ref bool refWasCritical,
	bool needSystemCriticalBreaks
)

Parameters

isCritical  Boolean
A value that indicates whether the current process is critical.
refWasCritical  Boolean
A variable passed by-reference to store a value indicating whether the current process was critical.
needSystemCriticalBreaks  Boolean
**UNDOCUMENTED**

Remarks

See Also