#ifndef _NTLDR_H #if (PHNT_MODE != PHNT_MODE_KERNEL) // rev DECLSPEC_NORETURN NTSYSAPI VOID NTAPI LdrShutdownProcess( VOID ); #endif #endif View code on GitHub
Kernel32.dll use this after call to NtTerminateProcess.
Kernel32.dll
NtTerminateProcess
LdrShutdownThread