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.

56 lines
1.2 KiB

  1. //+------------------------------------------------------------
  2. //
  3. // Copyright (C) 1999, Microsoft Corporation
  4. //
  5. // File: seomgr.h
  6. //
  7. // Contents: A class to manage the SEO dispatcher for a particular
  8. // SMTP virtual server
  9. //
  10. // Classes:
  11. // CSMTPSeoMgr
  12. //
  13. // Functions:
  14. //
  15. // History:
  16. // jstamerj 1999/06/25 19:11:03: Created.
  17. //
  18. //-------------------------------------------------------------
  19. #include <windows.h>
  20. interface IEventRouter;
  21. interface IServerDispatcher;
  22. #define ARRAY_SIZE(rg) (sizeof(rg)/sizeof(*rg))
  23. //
  24. // Class to manage the SEO configuration of one SMTP virtual server
  25. //
  26. class CSMTPSeoMgr
  27. {
  28. public:
  29. CSMTPSeoMgr();
  30. ~CSMTPSeoMgr();
  31. HRESULT HrInit(
  32. DWORD dwVSID);
  33. VOID Deinit();
  34. HRESULT HrTriggerServerEvent(
  35. DWORD dwEventType,
  36. PVOID pvContext);
  37. IEventRouter *GetRouter()
  38. {
  39. return m_pIEventRouter;
  40. }
  41. private:
  42. #define SIGNATURE_CSMTPSEOMGR (DWORD)'MSSC'
  43. #define SIGNATURE_CSMTPSEOMGR_INVALID (DWORD)'MSSX'
  44. DWORD m_dwSignature;
  45. IEventRouter *m_pIEventRouter;
  46. IServerDispatcher *m_pICatDispatcher;
  47. };