init
This commit is contained in:
24
Servers/服务器组件/私人场服务/GamePrivateServer.cpp
Normal file
24
Servers/服务器组件/私人场服务/GamePrivateServer.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
Reference in New Issue
Block a user