windows-nt/Source/XPSP1/NT/inetsrv/iis/ui/admin/common2/iisuihelper.cpp

33 lines
681 B
C++
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "common.h"
CComModule _Module;
BEGIN_OBJECT_MAP(ObjectMap)
END_OBJECT_MAP()
/////////////////////////////////////////////////////////////////////////////
// DLL Entry Point
extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
lpReserved;
if (dwReason == DLL_PROCESS_ATTACH)
{
_Module.Init(ObjectMap, hInstance);
DisableThreadLibraryCalls(hInstance);
InitErrorFunctionality();
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TerminateErrorFunctionality();
_Module.Term();
}
return TRUE; // ok
}