reactos/sdk/lib/vcruntime/wmainCRTStartup.cpp
Timo Kreuzer a978879ddb [VCSTARTUP] Implement (w)mainCRTStartup
__acrt_initialize is here as a stub to later support linking ucrt statically. When it is statically linked the real function should be called, but when the executable links to ucrtdll, the initialization happens when the DLL is loaded, so we call a stub here.
2025-02-06 09:17:37 +02:00

18 lines
328 B
C++

//
// wmainCRTStartup.c
//
// Copyright (c) 2024 Timo Kreuzer
//
// Implementation of unicode executable entry point.
//
// SPDX-License-Identifier: MIT
//
#include "commonCRTStartup.hpp"
extern "C" unsigned long wmainCRTStartup(void*)
{
__security_init_cookie();
return __commonCRTStartup<decltype(wmain)>();
}