Leaked source code of windows server 2003
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.

74 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1990-1992 Microsoft Corporation
  3. Module Name:
  4. smtpsubs.c
  5. Abstract:
  6. Subroutines for LAN Manager APIs.
  7. Author:
  8. Dan Hinsley (DanHi) 23-Mar-93
  9. Revision History:
  10. --*/
  11. // These must be included first:
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #define NOMINMAX // Avoid stdlib.h vs. windows.h warnings.
  16. #include <windows.h>
  17. #include <apiutil.h>
  18. BOOLEAN
  19. SmtpInitialize (
  20. IN PVOID DllHandle,
  21. IN ULONG Reason,
  22. IN LPVOID lpReserved OPTIONAL
  23. )
  24. {
  25. UNREFERENCED_PARAMETER(DllHandle); // avoid compiler warnings
  26. //
  27. // Handle attaching smtpsvc.dll to a new process.
  28. //
  29. if (Reason == DLL_PROCESS_ATTACH) {
  30. #if 0
  31. //
  32. // Initialize RPC Bind Cache
  33. //
  34. NetpInitRpcBindCache();
  35. #endif
  36. //
  37. // When DLL_PROCESS_DETACH and lpReserved is NULL, then a FreeLibrary
  38. // call is being made. If lpReserved is Non-NULL, then ExitProcess is
  39. // in progress. These cleanup routines will only be called when
  40. // a FreeLibrary is being called. ExitProcess will automatically
  41. // clean up all process resources, handles, and pending io.
  42. //
  43. } else if ((Reason == DLL_PROCESS_DETACH) &&
  44. (lpReserved == NULL)) {
  45. #if 0
  46. NetpCloseRpcBindCache();
  47. #endif
  48. }
  49. return TRUE;
  50. } // SmtpInitialize