26#if !defined CRTDLL && defined _DEBUG
32#ifdef _UCRT_ENCLAVE_BUILD
69 #pragma warning(disable: 26000)
84 __crt_unique_hmodule mscoree;
88 auto const cor_exit_process = __crt_get_proc_address<exit_process_pft>(mscoree.get(),
"CorExitProcess");
89 if (!cor_exit_process)
92 cor_exit_process(return_code);
176 int const return_code,
193 bool crt_uninitialization_required =
false;
197 static bool c_exit_complete =
false;
248 c_exit_complete =
true;
249 crt_uninitialization_required =
true;
254 if (crt_uninitialization_required)
268 #if !CRTDLL && _DEBUG
bool __cdecl __scrt_uninitialize_crt(bool is_terminating, bool from_exit)
process_end_policy __cdecl __acrt_get_process_end_policy(void)
bool __cdecl __acrt_app_verifier_enabled(void)
@ process_end_policy_exit_process
#define __acrt_select_exit_lock()
_ACRTIMP int __cdecl _execute_onexit_table(_In_opt_ _onexit_table_t *_Table)
_ACRTIMP void __cdecl _initterm(_In_reads_(_Last - _First) _In_ _PVFV *_First, _In_ _PVFV *_Last)
result_buffer_count char *const _In_ int const _In_ bool const _In_ unsigned const _In_ STRFLT const _In_ bool const _Inout_ __crt_cached_ptd_host &ptd throw()
#define DLL_PROCESS_DETACH
#define GetCurrentProcess()
BOOL WINAPI GetModuleHandleExW(IN DWORD dwFlags, IN LPCWSTR lpwModuleName OPTIONAL, OUT HMODULE *phModule)
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
VOID WINAPI ExitProcess(IN UINT uExitCode)
BOOL WINAPI TerminateProcess(IN HANDLE hProcess, IN UINT uExitCode)
void __cdecl _Exit(int const return_code)
void __cdecl _exit(int const return_code)
void __cdecl __acrt_initialize_thread_local_exit_callback(void *encoded_null)
_onexit_table_t __acrt_at_quick_exit_table
static bool __cdecl is_managed_app()
int __cdecl _is_c_termination_complete()
static int __cdecl atexit_exception_filter(unsigned long const _exception_code)
static void __cdecl common_exit(int const return_code, _crt_exit_cleanup_mode const cleanup_mode, _crt_exit_return_mode const return_mode)
static void __cdecl exit_or_terminate_process(UINT const return_code)
static _tls_callback_type thread_local_exit_callback_func
static bool __cdecl should_call_terminate_process()
void(WINAPI * exit_process_pft)(UINT)
_onexit_table_t __acrt_atexit_table
static long c_termination_complete
void __cdecl _register_thread_local_exe_atexit_callback(_In_ _tls_callback_type const _Callback)
static void __cdecl try_cor_exit_process(UINT const return_code)
void __cdecl quick_exit(int const return_code)
#define EXCEPTION_EXECUTE_HANDLER
#define EXCEPTION_CONTINUE_SEARCH
long __cdecl _InterlockedExchange(_Interlocked_operand_ long volatile *_Target, long _Value)
void MSVCRT() terminate()
static IMAGE_DOS_HEADER dos_header
#define IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR
#define IMAGE_NT_OPTIONAL_HDR_MAGIC
#define IMAGE_NT_SIGNATURE
#define IMAGE_DOS_SIGNATURE
#define _exception_code()
#define GetExceptionCode()
@ _crt_exit_quick_cleanup
@ _crt_exit_terminate_process
@ _crt_exit_return_to_caller