75 lines
1.3 KiB
C
75 lines
1.3 KiB
C
/*++
|
||
|
||
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
|
||
|