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