1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-18 23:11:19 +03:00
Files
KernelEx/kexcrt/msvc/dllcrt0.c
2018-11-03 16:21:13 +03:00

28 lines
511 B
C
Executable File

#include <windows.h>
#include "init.h"
extern BOOL WINAPI DllMain(
HINSTANCE hDllHandle,
DWORD dwReason,
LPVOID lpReserved
);
BOOL WINAPI _DllMainCRTStartup(
HINSTANCE hDllHandle,
DWORD dwReason,
LPVOID lpReserved
)
{
BOOL ret;
if (dwReason == DLL_PROCESS_ATTACH)
__init();
ret = DllMain(hDllHandle, dwReason, lpReserved);
if (dwReason == DLL_PROCESS_DETACH)
__exit();
return ret;
}