28 lines
704 B
C++
28 lines
704 B
C++
|
|
#include "Stdafx.h"
|
|||
|
|
#include <Afxdllx.h>
|
|||
|
|
#include "ModuleManagerHead.h"
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|||
|
|
|
|||
|
|
//<2F><>̬<EFBFBD><CCAC><EFBFBD><EFBFBD>
|
|||
|
|
static AFX_EXTENSION_MODULE ModuleManagerDLL={NULL,NULL};
|
|||
|
|
|
|||
|
|
//ȫ<>ֺ<EFBFBD><D6BA><EFBFBD>
|
|||
|
|
extern "C" INT APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
|
|||
|
|
{
|
|||
|
|
UNREFERENCED_PARAMETER(lpReserved);
|
|||
|
|
if (dwReason==DLL_PROCESS_ATTACH)
|
|||
|
|
{
|
|||
|
|
if (!AfxInitExtensionModule(ModuleManagerDLL,hInstance)) return 0;
|
|||
|
|
new CDynLinkLibrary(ModuleManagerDLL);
|
|||
|
|
}
|
|||
|
|
else if (dwReason==DLL_PROCESS_DETACH)
|
|||
|
|
{
|
|||
|
|
AfxTermExtensionModule(ModuleManagerDLL);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//////////////////////////////////////////////////////////////////////////////////
|