Files
marohook/Andromeda-CS2-Base/Andromeda-CS2-Base/DllMain.cpp
T
2025-10-20 14:00:35 +03:00

23 lines
417 B
C++

#include "DllMain.hpp"
#include "DllLauncher.hpp"
BOOL WINAPI DllMain( HINSTANCE hInstace , DWORD dwReason , LPVOID lpReserved )
{
switch ( dwReason )
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls( hInstace );
GetDllLauncher()->OnDllMain( lpReserved , hInstace );
return TRUE;
break;
case DLL_PROCESS_DETACH:
GetDllLauncher()->OnDestroy();
return TRUE;
break;
}
return TRUE;
}