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.

93 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. smtpproc.h
  5. Abstract:
  6. This module contains function prototypes used by the SMTP server.
  7. Author:
  8. Johnson Apacible (JohnsonA) 12-Sept-1995
  9. Revision History:
  10. --*/
  11. #ifndef _SMTPPROC_
  12. #define _SMTPPROC_
  13. //
  14. // smtpdata.cpp
  15. //
  16. APIERR
  17. InitializeGlobals(
  18. VOID
  19. );
  20. VOID
  21. TerminateGlobals(
  22. VOID
  23. );
  24. //
  25. // Socket utilities.
  26. //
  27. APIERR InitializeSockets( VOID );
  28. VOID TerminateSockets( VOID );
  29. VOID
  30. SmtpOnConnect(
  31. SOCKET sNew,
  32. SOCKADDR_IN * psockaddr
  33. );
  34. VOID
  35. SmtpOnConnectEx(
  36. VOID * pAtqContext,
  37. DWORD cdWritten,
  38. DWORD err,
  39. OVERLAPPED * lpo
  40. );
  41. VOID
  42. SmtpCompletion(
  43. PVOID Context,
  44. DWORD BytesWritten,
  45. DWORD CompletionStatus,
  46. OVERLAPPED * lpo
  47. );
  48. VOID
  49. SmtpCompletionFIO(
  50. PFIO_CONTEXT pFIOContext,
  51. FH_OVERLAPPED *pOverlapped,
  52. DWORD cbWritten,
  53. DWORD dwCompletionStatus
  54. );
  55. //
  56. // IPC functions.
  57. //
  58. APIERR InitializeIPC( VOID );
  59. VOID TerminateIPC( VOID );
  60. //
  61. // svcstat.c
  62. //
  63. VOID
  64. ClearStatistics(
  65. VOID
  66. );
  67. #endif // _SMTPPROC_