Files
wnmj/Servers/游戏组件/斗地主/机器人服务/AndroidServiceDll.cpp

28 lines
725 B
C++
Raw Normal View History

2026-02-13 14:34:15 +08:00
#include "Stdafx.h"
#include "AfxDllx.h"
//////////////////////////////////////////////////////////////////////////////////
//<2F><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD>
static AFX_EXTENSION_MODULE AndroidServiceDLL={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(AndroidServiceDLL, hInstance)) return 0;
new CDynLinkLibrary(AndroidServiceDLL);
}
else if (dwReason==DLL_PROCESS_DETACH)
{
AfxTermExtensionModule(AndroidServiceDLL);
}
return 1;
}
//////////////////////////////////////////////////////////////////////////////////