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.

96 lines
2.3 KiB

  1. //+------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: dsnevent.cpp
  6. //
  7. // Contents: Implementation of functions in dsnevent.h
  8. //
  9. // Classes: CDSNParams
  10. //
  11. // Functions:
  12. //
  13. // History:
  14. // jstamerj 2000/12/08 15:48:27: Created.
  15. //
  16. //-------------------------------------------------------------
  17. #include <aqprecmp.h>
  18. #include "dsnevent.h"
  19. //+------------------------------------------------------------
  20. //
  21. // Function: CDSNParams::HrAllocBoundMessage
  22. //
  23. // Synopsis: Allocate and bind a message
  24. //
  25. // Arguments:
  26. // ppMsg: Out parameter for message
  27. // phContent: Out parameter for content
  28. //
  29. // Returns:
  30. // S_OK: Success
  31. // error from SMTP
  32. //
  33. // History:
  34. // jstamerj 2001/05/11 15:34:49: Created.
  35. //
  36. //-------------------------------------------------------------
  37. HRESULT CDSNParams::HrAllocBoundMessage(
  38. OUT IMailMsgProperties **ppMsg,
  39. OUT PFIO_CONTEXT *phContent)
  40. {
  41. HRESULT hr = S_OK;
  42. TraceFunctEnterEx((LPARAM)this, "CDSNParams::HrAllocBoundMessage");
  43. _ASSERT(paqinst);
  44. hr = paqinst->HrAllocBoundMessage(
  45. ppMsg,
  46. phContent);
  47. DebugTrace((LPARAM)this, "returning %08lx", hr);
  48. TraceFunctLeaveEx((LPARAM)this);
  49. return hr;
  50. } // CDSNParams::HrAllocBoundMessage
  51. //+------------------------------------------------------------
  52. //
  53. // Function: CDSNParams::HrSubmitDSN
  54. //
  55. // Synopsis: Accepts a DSN message from a DSN sink
  56. //
  57. // Arguments:
  58. // dwDSNAction: Type of DSN generated
  59. // cRecipsDSNs: # of recipients DSNd
  60. // pDSNMsg: The DSN mailmsg
  61. //
  62. // Returns:
  63. // S_OK: Success
  64. // error from CAQSvrInst::HrSubmitDSN
  65. //
  66. // History:
  67. // jstamerj 2000/12/08 15:48:56: Created.
  68. //
  69. //-------------------------------------------------------------
  70. HRESULT CDSNParams::HrSubmitDSN(
  71. IN DWORD dwDSNAction,
  72. IN DWORD cRecipsDSNd,
  73. IN IMailMsgProperties *pDSNMsg)
  74. {
  75. HRESULT hr = S_OK;
  76. TraceFunctEnterEx((LPARAM)this, "CDSNParams::HrSubmitDSN");
  77. _ASSERT(paqinst);
  78. hr = paqinst->HrSubmitDSN(
  79. this,
  80. dwDSNAction,
  81. cRecipsDSNd,
  82. pDSNMsg);
  83. DebugTrace((LPARAM)this, "returning %08lx", hr);
  84. TraceFunctLeaveEx((LPARAM)this);
  85. return hr;
  86. } // CDSNParams::HrSubmitDSN