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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("NtDll.dll", EntryPoint := "RtlSetProcessIsCritical",
SetLastError := true>]
Public Shared Sub SetCurrentProcessIsCritical (
isCritical As Boolean,
ByRef refWasCritical As Boolean,
needSystemCriticalBreaks As Boolean
)
Dim isCritical As Boolean
Dim refWasCritical As Boolean
Dim needSystemCriticalBreaks As Boolean
NtDll.SetCurrentProcessIsCritical(isCritical,
refWasCritical, needSystemCriticalBreaks)
public:
[DllImportAttribute(L"NtDll.dll", EntryPoint = L"RtlSetProcessIsCritical",
SetLastError = true)]
static void SetCurrentProcessIsCritical(
bool isCritical,
bool% refWasCritical,
bool needSystemCriticalBreaks
)
[<DllImportAttribute("NtDll.dll", EntryPoint = "RtlSetProcessIsCritical",
SetLastError = true)>]
static member SetCurrentProcessIsCritical :
isCritical : bool *
refWasCritical : bool byref *
needSystemCriticalBreaks : bool -> unit
No code example is currently available or this language may not be supported.
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**