Windows2003-3790/inetsrv/iis/svcs/smtp/smtpapi/smtpsubs.c
2020-09-30 16:53:55 +02:00

75 lines
1.4 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:
smtpsubs.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>
#include <apiutil.h>
BOOLEAN
SmtpInitialize (
IN PVOID DllHandle,
IN ULONG Reason,
IN LPVOID lpReserved OPTIONAL
)
{
UNREFERENCED_PARAMETER(DllHandle); // avoid compiler warnings
//
// Handle attaching smtpsvc.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;
} // SmtpInitialize