Files
wnmj/Servers/游戏组件/诈金花/游戏服务器/GameServer.cpp
2026-02-13 14:34:15 +08:00

25 lines
640 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;
}
//////////////////////////////////////////////////////////////////////////