Source code of Windows XP (NT5)
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.
 
 
 
 
 
 

72 lines
1.3 KiB

/*++
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