windows-nt/Source/XPSP1/NT/inetsrv/iis/svcs/nntp/nntpapi/nntpsubs.c
2020-09-26 16:20:57 +08:00

73 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1990-1992 Microsoft Corporation
Module Name:
nntpsubs.c
Abstract:
Subroutines for LAN Manager APIs.
Author:
Dan Hinsley (DanHi) 23-Mar-93
Revision History:
--*/
// These must be included first:
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#define NOMINMAX // Avoid stdlib.h vs. windows.h warnings.
#include <windows.h>
BOOLEAN
NntpInitialize (
IN PVOID DllHandle,
IN ULONG Reason,
IN LPVOID lpReserved OPTIONAL
)
{
UNREFERENCED_PARAMETER(DllHandle); // avoid compiler warnings
//
// Handle attaching w3svc.dll to a new process.
//
if (Reason == DLL_PROCESS_ATTACH) {
#if 0
//
// Initialize RPC Bind Cache
//
NetpInitRpcBindCache();
#endif
//
// When DLL_PROCESS_DETACH and lpReserved is NULL, then a FreeLibrary
// call is being made. If lpReserved is Non-NULL, then ExitProcess is
// in progress. These cleanup routines will only be called when
// a FreeLibrary is being called. ExitProcess will automatically
// clean up all process resources, handles, and pending io.
//
} else if ((Reason == DLL_PROCESS_DETACH) &&
(lpReserved == NULL)) {
#if 0
NetpCloseRpcBindCache();
#endif
}
return TRUE;
} // NntpInitialize