Files
2026-02-13 14:34:15 +08:00

26 lines
656 B
C++

#include "Stdafx.h"
#include <Afxdllx.h>
//////////////////////////////////////////////////////////////////////////////////
static AFX_EXTENSION_MODULE GameServerDLL={NULL,NULL};
//DLL µ¼³öÖ÷º¯Êý
extern "C" int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER(lpReserved);
if (dwReason==DLL_PROCESS_ATTACH)
{
if (!AfxInitExtensionModule(GameServerDLL,hInstance)) return 0;
new CDynLinkLibrary(GameServerDLL);
}
else if (dwReason==DLL_PROCESS_DETACH)
{
AfxTermExtensionModule(GameServerDLL);
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////