26 lines
656 B
C++
26 lines
656 B
C++
|
|
#include "Stdafx.h"
|
|||
|
|
#include <Afxdllx.h>
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|||
|
|
|
|||
|
|
static AFX_EXTENSION_MODULE GameServerDLL={NULL,NULL};
|
|||
|
|
|
|||
|
|
//DLL <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
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;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|