/*++ 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 #include #include #define NOMINMAX // Avoid stdlib.h vs. windows.h warnings. #include 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