mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
1.8 KiB
126 lines
1.8 KiB
/*++
|
|
|
|
Copyright (c) 1994-1999 Microsoft Corporation
|
|
|
|
Module Name :
|
|
|
|
iisui.cpp
|
|
|
|
Abstract:
|
|
|
|
DLL Main entry point.
|
|
|
|
Author:
|
|
|
|
Ronald Meijer (ronaldm)
|
|
|
|
Project:
|
|
|
|
Internet Services Manager (cluster edition)
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
|
|
|
|
//
|
|
// Include Files
|
|
//
|
|
#include "stdafx.h"
|
|
#include "common.h"
|
|
|
|
#ifdef _COMEXPORT
|
|
|
|
HINSTANCE hDLLInstance;
|
|
|
|
//
|
|
// Dll Version Only
|
|
//
|
|
// <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|
|
|
|
|
|
|
|
STDAPI
|
|
DllRegisterServer()
|
|
{
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
|
|
STDAPI
|
|
DllUnregisterServer()
|
|
{
|
|
return S_OK;
|
|
}
|
|
|
|
|
|
|
|
static AFX_EXTENSION_MODULE commonDLL = {NULL, NULL};
|
|
|
|
|
|
|
|
extern "C" int APIENTRY
|
|
DllMain(
|
|
IN HINSTANCE hInstance,
|
|
IN DWORD dwReason,
|
|
IN LPVOID lpReserved
|
|
)
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
DLL Main entry point
|
|
|
|
Arguments:
|
|
|
|
HINSTANCE hInstance : Instance handle
|
|
DWORD dwReason : DLL_PROCESS_ATTACH, etc
|
|
LPVOID lpReserved : Reserved value
|
|
|
|
Return Value:
|
|
|
|
1 for succesful initialisation, 0 for failed initialisation
|
|
|
|
--*/
|
|
{
|
|
lpReserved;
|
|
|
|
int res = 1;
|
|
|
|
switch (dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
ASSERT(hInstance != NULL);
|
|
hDLLInstance = hInstance;
|
|
res = ::AfxInitExtensionModule(commonDLL, hInstance);
|
|
InitErrorFunctionality();
|
|
InitIntlSettings();
|
|
#if defined(_DEBUG) || DBG
|
|
afxTraceEnabled = TRUE;
|
|
#endif // _DEBUG
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
//
|
|
// termination
|
|
//
|
|
TerminateIntlSettings();
|
|
TerminateErrorFunctionality();
|
|
::AfxTermExtensionModule(commonDLL);
|
|
break;
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
extern "C" void WINAPI
|
|
InitCommonDll()
|
|
{
|
|
new CDynLinkLibrary(commonDLL);
|
|
// hDLLInstance = commonDLL.hResource;
|
|
}
|
|
|
|
|
|
#endif // IISUI_EXPORTS
|