Files
wnmj/Servers/服务器组件/服务核心/ServiceCore.cpp

29 lines
742 B
C++
Raw Normal View History

2026-02-13 14:34:15 +08:00
#include "Stdafx.h"
#include "AfxDllx.h"
#include "ServiceCoreHead.h"
//////////////////////////////////////////////////////////////////////////////////
//<2F><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD>
static AFX_EXTENSION_MODULE ServiceCoreDLL={NULL,NULL};
//////////////////////////////////////////////////////////////////////////////////
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern "C" int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason==DLL_PROCESS_ATTACH)
{
if (!AfxInitExtensionModule(ServiceCoreDLL, hInstance)) return 0;
new CDynLinkLibrary(ServiceCoreDLL);
}
else if (dwReason==DLL_PROCESS_DETACH)
{
AfxTermExtensionModule(ServiceCoreDLL);
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////