29 lines
742 B
C++
29 lines
742 B
C++
#include "Stdafx.h"
|
|
#include "AfxDllx.h"
|
|
#include "ServiceCoreHead.h"
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//¾²Ì¬±äÁ¿
|
|
static AFX_EXTENSION_MODULE ServiceCoreDLL={NULL,NULL};
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//µ¼³öº¯Êý
|
|
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;
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////
|