RtlExitUserProcess - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H
#if (PHNT_VERSION >= PHNT_VISTA)

DECLSPEC_NORETURN
NTSYSAPI
VOID
NTAPI
RtlExitUserProcess(
    _In_ NTSTATUS ExitStatus
    );

#endif
#endif

View code on GitHub

Gracefully terminates the current process.

Parameters

Implementation details

This function detaches from DLLs, shuts down various ntdll facilities, and uses NtTerminateProcess to perform two-phase termination.

Related Win32 API

See also