home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / gwreport.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  6KB  |  145 lines

  1. // --gwreport.h-----------------------------------------------------------------
  2. // 
  3. //  Gateway report functions.
  4. // 
  5. // Copyright (C) Microsoft Corp., 1986-1996.  All Rights Reserved.
  6. // -----------------------------------------------------------------------------
  7. #if !defined(_GWREPORT_H)
  8. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  9. #define _GWREPORT_H
  10.  
  11. #include <wchar.h>
  12. #include <tchar.h>
  13. #include "edkdebug.h"
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif // __cplusplus
  18.  
  19. // =============================================================================
  20. //
  21. // Non-Delivery Report Functions
  22. //
  23. // =============================================================================
  24.  
  25. //$--HrNDRCreateFailedRecipList-------------------------------------------------
  26. //
  27. //  Create an empty list of failed recipients.
  28. //
  29. // -----------------------------------------------------------------------------
  30. HRESULT HrNDRCreateFailedRecipList(         // RETURNS: return code
  31.     OUT    LPADRLIST*    lppAdrList);       // address list
  32.  
  33. //$--HrNDRGetFailedRecipList----------------------------------------------------
  34. //
  35. //  Create a failed recipient entry.
  36. //
  37. // -----------------------------------------------------------------------------
  38. HRESULT HrNDRGetFailedRecipList(            // RETURNS: return code
  39.     IN     LPADRENTRY    lpAdrEntry,        // address entry
  40.     IN     ULONG         cExtraProps,       // count of extra properties
  41.     IN     LPSPropValue  lpExtraProps,      // extra properties
  42.     OUT    ULONG*        lpcFailedProps,    // count of failed properties
  43.     OUT    LPSPropValue* lppFailedProps);   // failed properties
  44.  
  45. //$--HrNDRAddToFailedRecipList--------------------------------------------------
  46. //
  47. //  Add a recipient entry to the list of failed recipients.
  48. //
  49. // -----------------------------------------------------------------------------
  50. HRESULT HrNDRAddToFailedRecipList(          // RETURNS: return code
  51.     IN     ULONG         cFailedProps,      // count of failed properties
  52.     IN     LPSPropValue  lpFailedProps,     // failed properties
  53.     IN OUT LPADRLIST*    lppAdrList);       // address list
  54.  
  55. //$--HrNDRGetFailedProps----------------------------------------------------------
  56. //
  57. //  Get NDR properties from the original message.
  58. //
  59. // -----------------------------------------------------------------------------
  60. HRESULT HrNDRGetFailedProps(                  // RETURNS: return code
  61.     IN     LPMESSAGE     lpMessage,         // message
  62.     OUT    ULONG*        lpcProps,          // count of properties
  63.     OUT    LPSPropValue* lppProps);         // properties
  64.  
  65. //$--HrNDRCreate----------------------------------------------------------------
  66. //
  67. //  Create a non-delivery report.
  68. //
  69. // -----------------------------------------------------------------------------
  70. HRESULT HrNDRCreate(                        // RETURNS: return code
  71.     IN     LPADRBOOK     lpAdrBook,         // address book
  72.     IN     LPMAPIFOLDER  lpFolder,          // folder
  73.     IN     LPMESSAGE     lpMessage,         // message
  74.     IN     LPADRLIST     lpAdrList,         // address list
  75.     IN     ULONG         cProps,            // count of properties
  76.     IN     LPSPropValue  lpProps,           // properties
  77.     OUT    LPMESSAGE*    lppReport);        // report
  78.  
  79. // =============================================================================
  80. //
  81. // Delivery Report Functions
  82. //
  83. // =============================================================================
  84.  
  85. //$--HrDRCreateDeliveredRecipList-----------------------------------------------
  86. //
  87. //  Create an empty list of delivered recipients.
  88. //
  89. // -----------------------------------------------------------------------------
  90. HRESULT HrDRCreateDeliveredRecipList(       // RETURNS: return code
  91.     OUT    LPADRLIST*    lppAdrList);       // address list
  92.  
  93. //$--HrDRGetDeliveredRecip--------------------------------------------------
  94. //
  95. //  Create a delivered recipient entry.
  96. //
  97. // -----------------------------------------------------------------------------
  98. HRESULT HrDRGetDeliveredRecip(          // RETURNS: return code
  99.     IN     LPADRENTRY    lpAdrEntry,        // address entry
  100.     IN     ULONG         cExtraProps,       // count of extra properties
  101.     IN     LPSPropValue  lpExtraProps,      // extra properties
  102.     OUT    ULONG*        lpcDeliveredProps, // count of delivered properties
  103.     OUT    LPSPropValue* lppDeliveredProps);// delivered properties
  104.  
  105. //$--HrDRAddToDeliveredRecipList------------------------------------------------
  106. //
  107. //  Add a recipient entry to the list of delivered recipients.
  108. //
  109. // -----------------------------------------------------------------------------
  110. HRESULT HrDRAddToDeliveredRecipList(        // RETURNS: return code
  111.     IN     ULONG         cDeliveredProps,   // count of delivered properties
  112.     IN     LPSPropValue  lpDeliveredProps,  // delivered properties
  113.     IN OUT LPADRLIST*    lppAdrList);       // address list
  114.  
  115. //$--HrDRGetProps-----------------------------------------------------------
  116. //
  117. //  Get DR properties from the original message.
  118. //
  119. // -----------------------------------------------------------------------------
  120. HRESULT HrDRGetProps(                   // RETURNS: return code
  121.     IN     LPMESSAGE     lpMessage,         // message
  122.     OUT    ULONG*        lpcProps,          // count of properties
  123.     OUT    LPSPropValue* lppProps);         // properties
  124.  
  125. //$--HrDRCreate-----------------------------------------------------------------
  126. //
  127. //  Create a delivery report.
  128. //
  129. // -----------------------------------------------------------------------------
  130. HRESULT HrDRCreate(                         // RETURNS: return code
  131.     IN     LPADRBOOK     lpAdrBook,         // address book
  132.     IN     LPMAPIFOLDER  lpFolder,          // folder
  133.     IN     LPMESSAGE     lpMessage,         // message
  134.     IN     LPADRLIST     lpAdrList,         // address list
  135.     IN     ULONG         cProps,            // count of properties
  136.     IN     LPSPropValue  lpProps,           // properties
  137.     OUT    LPMESSAGE*    lppReport);        // report
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif // __cplusplus
  142.  
  143. #pragma option pop /*P_O_Pop*/
  144. #endif
  145.