home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / borland / cb / setup / cbuilder / data.z / MAPI.HPP < prev    next >
C/C++ Source or Header  |  1997-02-28  |  6KB  |  149 lines

  1. //----------------------------------------------------------------------------
  2. // Mapi.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Mapi.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef MapiHPP
  6. #define MapiHPP
  7. //----------------------------------------------------------------------------
  8. #include <Windows.hpp>
  9. #include <System.hpp>
  10. #include <Mapi.h>
  11.  
  12. #pragma warn -par
  13. #pragma warn -hid 
  14. #pragma warn -inl
  15.  
  16. namespace Mapi
  17. {
  18. //-- type declarations -------------------------------------------------------
  19.  
  20. typedef Cardinal *PLHANDLE;
  21.  
  22. typedef MapiFileDesc *PMapiFileDesc;
  23.  
  24. #pragma pack(push, 1)
  25. #pragma pack(pop)
  26.  
  27. typedef MapiFileDesc  TMapiFileDesc;
  28.  
  29. typedef MapiFileTagExt *PMapiFileTagExt;
  30.  
  31. #pragma pack(push, 1)
  32. #pragma pack(pop)
  33.  
  34. typedef MapiFileTagExt  TMapiFileTagExt;
  35.  
  36. typedef MapiRecipDesc *PMapiRecipDesc;
  37.  
  38. #pragma pack(push, 1)
  39. #pragma pack(pop)
  40.  
  41. typedef MapiRecipDesc  TMapiRecipDesc;
  42.  
  43. typedef MapiMessage *PMapiMessage;
  44.  
  45. #pragma pack(push, 1)
  46. #pragma pack(pop)
  47.  
  48. typedef MapiMessage  TMapiMessage;
  49.  
  50. typedef Cardinal __stdcall (*TFNMapiLogOn)(Cardinal ulUIParam, char * lpszProfileName, char * lpszPassword
  51.     , Cardinal flFlags, Cardinal ulReserved, PLHANDLE lplhSession);
  52.  
  53. typedef TFNMapiLogOn *PFNMapiLogon;
  54.  
  55. typedef Cardinal __stdcall (*TFNMapiLogOff)(Cardinal lhSession, Cardinal ulUIParam, Cardinal flFlags
  56.     , Cardinal ulReserved);
  57.  
  58. typedef TFNMapiLogOff *PFNMapiLogOff;
  59.  
  60. typedef Cardinal __stdcall (*TFNMapiSendMail)(Cardinal lhSession, Cardinal ulUIParam, MapiMessage &lpMessage
  61.     , Cardinal flFlags, Cardinal ulReserved);
  62.  
  63. typedef TFNMapiSendMail *PFNMapiSendMail;
  64.  
  65. typedef Cardinal __stdcall (*TFNMapiSendDocuments)(Cardinal ulUIParam, char * lpszDelimChar, char * 
  66.     lpszFilePaths, char * lpszFileNames, Cardinal ulReserved);
  67.  
  68. typedef TFNMapiSendDocuments *PFNMapiSendDocuments;
  69.  
  70. typedef Cardinal __stdcall (*TFNMapiFindNext)(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageType
  71.     , char * lpszSeedMessageID, Cardinal flFlags, Cardinal ulReserved, char * lpszMessageID);
  72.  
  73. typedef TFNMapiFindNext *PFNMapiFindNext;
  74.  
  75. typedef Cardinal __stdcall (*TFNMapiReadMail)(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageID
  76.     , Cardinal flFlags, Cardinal ulReserved, PMapiMessage &lppMessage);
  77.  
  78. typedef TFNMapiReadMail *PFNMapiReadMail;
  79.  
  80. typedef Cardinal __stdcall (*TFNMapiSaveMail)(Cardinal lhSession, Cardinal ulUIParam, MapiMessage &lpMessage
  81.     , Cardinal flFlags, Cardinal ulReserved, char * lpszMessageID);
  82.  
  83. typedef TFNMapiSaveMail *PFNMapiSaveMail;
  84.  
  85. typedef Cardinal __stdcall (*TFNMapiDeleteMail)(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageID
  86.     , Cardinal flFlags, Cardinal ulReserved);
  87.  
  88. typedef TFNMapiDeleteMail *PFNMapiDeleteMail;
  89.  
  90. typedef Cardinal __stdcall (*TFNMapiFreeBuffer)(void * pv);
  91.  
  92. typedef TFNMapiFreeBuffer *PFNMapiFreeBuffer;
  93.  
  94. typedef Cardinal __stdcall (*TFNMapiAddress)(Cardinal lhSession, Cardinal ulUIParam, char * lpszCaption
  95.     , Cardinal nEditFields, char * lpszLabels, Cardinal nRecips, MapiRecipDesc &lpRecips, Cardinal flFlags
  96.     , Cardinal ulReserved, PULONG lpnNewRecips, PMapiRecipDesc &lppNewRecips);
  97.  
  98. typedef TFNMapiAddress *PFNMapiAddress;
  99.  
  100. typedef Cardinal __stdcall (*TFNMapiDetails)(Cardinal lhSession, Cardinal ulUIParam, MapiRecipDesc &lpRecip
  101.     , Cardinal flFlags, Cardinal ulReserved);
  102.  
  103. typedef TFNMapiDetails *PFNMapiDetails;
  104.  
  105. typedef Cardinal __stdcall (*TFNMapiResolveName)(Cardinal lhSession, Cardinal ulUIParam, char * lpszName
  106.     , Cardinal flFlags, Cardinal ulReserved, PMapiRecipDesc &lppRecip);
  107.  
  108. typedef TFNMapiResolveName *PFNMapiResolveName;
  109.  
  110. //-- var, const, procedure ---------------------------------------------------
  111. extern System::AnsiString MAPIDLL;
  112. extern Cardinal __fastcall MapiLogOn(Cardinal ulUIParam, char * lpszProfileName, char * lpszPassword
  113.     , Cardinal flFlags, Cardinal ulReserved, PLHANDLE lplhSession);
  114. extern Cardinal __fastcall MapiLogOff(Cardinal lhSession, Cardinal ulUIParam, Cardinal flFlags, Cardinal 
  115.     ulReserved);
  116. extern Cardinal __fastcall MapiSendMail(Cardinal lhSession, Cardinal ulUIParam, MapiMessage &lpMessage
  117.     , Cardinal flFlags, Cardinal ulReserved);
  118. extern Cardinal __fastcall MapiSendDocuments(Cardinal ulUIParam, char * lpszDelimChar, char * lpszFilePaths
  119.     , char * lpszFileNames, Cardinal ulReserved);
  120. extern Cardinal __fastcall MapiFindNext(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageType
  121.     , char * lpszSeedMessageID, Cardinal flFlags, Cardinal ulReserved, char * lpszMessageID);
  122. extern Cardinal __fastcall MapiReadMail(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageID
  123.     , Cardinal flFlags, Cardinal ulReserved, PMapiMessage &lppMessage);
  124. extern Cardinal __fastcall MapiSaveMail(Cardinal lhSession, Cardinal ulUIParam, MapiMessage &lpMessage
  125.     , Cardinal flFlags, Cardinal ulReserved, char * lpszMessageID);
  126. extern Cardinal __fastcall MapiDeleteMail(Cardinal lhSession, Cardinal ulUIParam, char * lpszMessageID
  127.     , Cardinal flFlags, Cardinal ulReserved);
  128. extern Cardinal __fastcall MapiFreeBuffer(void * pv);
  129. extern Cardinal __fastcall MapiAddress(Cardinal lhSession, Cardinal ulUIParam, char * lpszCaption, Cardinal 
  130.     nEditFields, char * lpszLabels, Cardinal nRecips, MapiRecipDesc &lpRecips, Cardinal flFlags, Cardinal 
  131.     ulReserved, PULONG lpnNewRecips, PMapiRecipDesc &lppNewRecips);
  132. extern Cardinal __fastcall MapiDetails(Cardinal lhSession, Cardinal ulUIParam, MapiRecipDesc &lpRecip
  133.     , Cardinal flFlags, Cardinal ulReserved);
  134. extern Cardinal __fastcall MapiResolveName(Cardinal lhSession, Cardinal ulUIParam, char * lpszName, 
  135.     Cardinal flFlags, Cardinal ulReserved, PMapiRecipDesc &lppRecip);
  136. extern void __fastcall finalization(void);
  137.  
  138. }    /* namespace Mapi */
  139.  
  140. #pragma warn .par
  141. #pragma warn .hid 
  142. #pragma warn .inl
  143.  
  144. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  145. using namespace Mapi;
  146. #endif
  147. //-- end unit ----------------------------------------------------------------
  148. #endif    // Mapi
  149.