#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_VISTA)
DECLSPEC_NORETURN
NTSYSAPI
VOID
NTAPI
RtlExitUserProcess(
_In_ NTSTATUS ExitStatus
);
View code on GitHub
#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_VISTA)
// ...
#else
#define RtlExitUserProcess RtlExitUserProcess_R
View code on GitHub
Gracefully terminates the current process.
ExitStatus
- the value to set as the exit status for the process.This function detaches from DLLs, shuts down various ntdll facilities, and uses NtTerminateProcess
to perform two-phase termination.