home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / MAPI.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  10.4 KB  |  248 lines

  1. //----------------------------------------------------------------------------
  2. // Mapi.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
  3. // From: Mapi.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef MapiHPP
  6. #define MapiHPP
  7. //----------------------------------------------------------------------------
  8. #ifndef WindowsHPP
  9. #include <Windows.hpp>
  10. #endif
  11.  
  12. #ifndef SystemHPP
  13. #include <System.hpp>
  14. #endif
  15.  
  16. namespace Mapi
  17. {
  18. //-- type declarations -------------------------------------------------------
  19. typedef System::Integer FLAGS;
  20.  
  21. typedef System::Integer LHANDLE;
  22.  
  23. typedef System::Cardinal *PLHANDLE;
  24.  
  25. struct TMapiFileDesc;
  26. typedef TMapiFileDesc *PMapiFileDesc;
  27.  
  28. struct TMapiFileDesc
  29. {
  30.     System::Cardinal ulReserved;
  31.     System::Cardinal flFlags;
  32.     System::Cardinal nPosition;
  33.     System::Char *lpszPathName;
  34.     System::Char *lpszFileName;
  35.     void *lpFileType;
  36. } ;
  37.  
  38. struct TMapiFileTagExt;
  39. typedef TMapiFileTagExt *PMapiFileTagExt;
  40.  
  41. struct TMapiFileTagExt
  42. {
  43.     System::Cardinal ulReserved;
  44.     System::Cardinal cbTag;
  45.     System::Byte *lpTag;
  46.     System::Cardinal cbEncoding;
  47.     System::Byte *lpEncoding;
  48. } ;
  49.  
  50. struct TMapiRecipDesc;
  51. typedef TMapiRecipDesc *PMapiRecipDesc;
  52.  
  53. struct TMapiRecipDesc
  54. {
  55.     System::Cardinal ulReserved;
  56.     System::Cardinal ulRecipClass;
  57.     System::Char *lpszName;
  58.     System::Char *lpszAddress;
  59.     System::Cardinal ulEIDSize;
  60.     void *lpEntryID;
  61. } ;
  62.  
  63. struct TMapiMessage;
  64. typedef TMapiMessage *PMapiMessage;
  65.  
  66. struct TMapiMessage
  67. {
  68.     System::Cardinal ulReserved;
  69.     System::Char *lpszSubject;
  70.     System::Char *lpszNoteText;
  71.     System::Char *lpszMessageType;
  72.     System::Char *lpszDateReceived;
  73.     System::Char *lpszConversationID;
  74.     System::Cardinal flFlags;
  75.     TMapiRecipDesc *lpOriginator;
  76.     System::Cardinal nRecipCount;
  77.     TMapiRecipDesc *lpRecips;
  78.     System::Cardinal nFileCount;
  79.     TMapiFileDesc *lpFiles;
  80. } ;
  81.  
  82. typedef System::Cardinal __stdcall (*TFNMapiLogOn)(System::Cardinal ulUIParam, System::PChar lpszProfileName
  83.     , System::PChar lpszPassword, System::Cardinal flFlags, System::Cardinal ulReserved, PLHANDLE lplhSession
  84.     );
  85.  
  86. typedef TFNMapiLogOn *PFNMapiLogon;
  87.  
  88. typedef System::Cardinal __stdcall (*TFNMapiLogOff)(System::Cardinal lhSession, System::Cardinal ulUIParam
  89.     , System::Cardinal flFlags, System::Cardinal ulReserved);
  90.  
  91. typedef TFNMapiLogOff *PFNMapiLogOff;
  92.  
  93. typedef System::Cardinal __stdcall (*TFNMapiSendMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
  94.     , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved);
  95.  
  96. typedef TFNMapiSendMail *PFNMapiSendMail;
  97.  
  98. typedef System::Cardinal __stdcall (*TFNMapiSendDocuments)(System::Cardinal ulUIParam, System::PChar 
  99.     lpszDelimChar, System::PChar lpszFilePaths, System::PChar lpszFileNames, System::Cardinal ulReserved
  100.     );
  101.  
  102. typedef TFNMapiSendDocuments *PFNMapiSendDocuments;
  103.  
  104. typedef System::Cardinal __stdcall (*TFNMapiFindNext)(System::Cardinal lhSession, System::Cardinal ulUIParam
  105.     , System::PChar lpszMessageType, System::PChar lpszSeedMessageID, System::Cardinal flFlags, System::Cardinal 
  106.     ulReserved, System::PChar lpszMessageID);
  107.  
  108. typedef TFNMapiFindNext *PFNMapiFindNext;
  109.  
  110. typedef System::Cardinal __stdcall (*TFNMapiReadMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
  111.     , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiMessage 
  112.     &lppMessage);
  113.  
  114. typedef TFNMapiReadMail *PFNMapiReadMail;
  115.  
  116. typedef System::Cardinal __stdcall (*TFNMapiSaveMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
  117.     , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved, System::PChar lpszMessageID
  118.     );
  119.  
  120. typedef TFNMapiSaveMail *PFNMapiSaveMail;
  121.  
  122. typedef System::Cardinal __stdcall (*TFNMapiDeleteMail)(System::Cardinal lhSession, System::Cardinal 
  123.     ulUIParam, System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved);
  124.  
  125. typedef TFNMapiDeleteMail *PFNMapiDeleteMail;
  126.  
  127. typedef System::Cardinal __stdcall (*TFNMapiFreeBuffer)(System::Pointer pv);
  128.  
  129. typedef TFNMapiFreeBuffer *PFNMapiFreeBuffer;
  130.  
  131. typedef System::Cardinal __stdcall (*TFNMapiAddress)(System::Cardinal lhSession, System::Cardinal ulUIParam
  132.     , System::PChar lpszCaption, System::Cardinal nEditFields, System::PChar lpszLabels, System::Cardinal 
  133.     nRecips, TMapiRecipDesc &lpRecips, System::Cardinal flFlags, System::Cardinal ulReserved, Windows::PULONG 
  134.     lpnNewRecips, PMapiRecipDesc &lppNewRecips);
  135.  
  136. typedef TFNMapiAddress *PFNMapiAddress;
  137.  
  138. typedef System::Cardinal __stdcall (*TFNMapiDetails)(System::Cardinal lhSession, System::Cardinal ulUIParam
  139.     , TMapiRecipDesc &lpRecip, System::Cardinal flFlags, System::Cardinal ulReserved);
  140.  
  141. typedef TFNMapiDetails *PFNMapiDetails;
  142.  
  143. typedef System::Cardinal __stdcall (*TFNMapiResolveName)(System::Cardinal lhSession, System::Cardinal 
  144.     ulUIParam, System::PChar lpszName, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiRecipDesc 
  145.     &lppRecip);
  146.  
  147. typedef TFNMapiResolveName *PFNMapiResolveName;
  148.  
  149. //-- var, const, procedure ---------------------------------------------------
  150. #define lhSessionNull System::Byte(0)
  151. #define MAPI_OLE System::Byte(1)
  152. #define MAPI_OLE_STATIC System::Byte(2)
  153. #define MAPI_ORIG System::Byte(0)
  154. #define MAPI_TO System::Byte(1)
  155. #define MAPI_CC System::Byte(2)
  156. #define MAPI_BCC System::Byte(3)
  157. #define MAPI_UNREAD System::Byte(1)
  158. #define MAPI_RECEIPT_REQUESTED System::Byte(2)
  159. #define MAPI_SENT System::Byte(4)
  160. #define MAPI_LOGON_UI System::Byte(1)
  161. #define MAPI_PASSWORD_UI System::Integer(131072)
  162. #define MAPI_NEW_SESSION System::Byte(2)
  163. #define MAPI_FORCE_DOWNLOAD System::Smallint(4096)
  164. #define MAPI_ALLOW_OTHERS System::Byte(8)
  165. #define MAPI_EXPLICIT_PROFILE System::Byte(16)
  166. #define MAPI_EXTENDED System::Byte(32)
  167. #define MAPI_USE_DEFAULT System::Byte(64)
  168. #define MAPI_SIMPLE_DEFAULT System::Smallint(4105)
  169. #define MAPI_SIMPLE_EXPLICIT System::Smallint(4114)
  170. #define MAPI_LOGOFF_SHARED System::Byte(1)
  171. #define MAPI_LOGOFF_UI System::Byte(2)
  172. #define MAPI_DIALOG System::Byte(8)
  173. #define MAPI_UNREAD_ONLY System::Byte(32)
  174. #define MAPI_GUARANTEE_FIFO System::Smallint(256)
  175. #define MAPI_LONG_MSGID System::Smallint(16384)
  176. #define MAPI_PEEK System::Byte(128)
  177. #define MAPI_SUPPRESS_ATTACH System::Smallint(2048)
  178. #define MAPI_ENVELOPE_ONLY System::Byte(64)
  179. #define MAPI_BODY_AS_FILE System::Smallint(512)
  180. #define MAPI_AB_NOMODIFY System::Smallint(1024)
  181. #define SUCCESS_SUCCESS System::Byte(0)
  182. #define MAPI_USER_ABORT System::Byte(1)
  183. #define MAPI_E_USER_ABORT System::Byte(1)
  184. #define MAPI_E_FAILURE System::Byte(2)
  185. #define MAPI_E_LOGON_FAILURE System::Byte(3)
  186. #define MAPI_E_LOGIN_FAILURE System::Byte(3)
  187. #define MAPI_E_DISK_FULL System::Byte(4)
  188. #define MAPI_E_INSUFFICIENT_MEMORY System::Byte(5)
  189. #define MAPI_E_ACCESS_DENIED System::Byte(6)
  190. #define MAPI_E_TOO_MANY_SESSIONS System::Byte(8)
  191. #define MAPI_E_TOO_MANY_FILES System::Byte(9)
  192. #define MAPI_E_TOO_MANY_RECIPIENTS System::Byte(10)
  193. #define MAPI_E_ATTACHMENT_NOT_FOUND System::Byte(11)
  194. #define MAPI_E_ATTACHMENT_OPEN_FAILURE System::Byte(12)
  195. #define MAPI_E_ATTACHMENT_WRITE_FAILURE System::Byte(13)
  196. #define MAPI_E_UNKNOWN_RECIPIENT System::Byte(14)
  197. #define MAPI_E_BAD_RECIPTYPE System::Byte(15)
  198. #define MAPI_E_NO_MESSAGES System::Byte(16)
  199. #define MAPI_E_INVALID_MESSAGE System::Byte(17)
  200. #define MAPI_E_TEXT_TOO_LARGE System::Byte(18)
  201. #define MAPI_E_INVALID_SESSION System::Byte(19)
  202. #define MAPI_E_TYPE_NOT_SUPPORTED System::Byte(20)
  203. #define MAPI_E_AMBIGUOUS_RECIPIENT System::Byte(21)
  204. #define MAPI_E_AMBIG_RECIP System::Byte(21)
  205. #define MAPI_E_MESSAGE_IN_USE System::Byte(22)
  206. #define MAPI_E_NETWORK_FAILURE System::Byte(23)
  207. #define MAPI_E_INVALID_EDITFIELDS System::Byte(24)
  208. #define MAPI_E_INVALID_RECIPS System::Byte(25)
  209. #define MAPI_E_NOT_SUPPORTED System::Byte(26)
  210. extern System::AnsiString MAPIDLL;
  211. extern System::Cardinal __fastcall MapiLogOn(System::Cardinal ulUIParam, System::PChar lpszProfileName
  212.     , System::PChar lpszPassword, System::Cardinal flFlags, System::Cardinal ulReserved, PLHANDLE lplhSession
  213.     );
  214. extern System::Cardinal __fastcall MapiLogOff(System::Cardinal lhSession, System::Cardinal ulUIParam
  215.     , System::Cardinal flFlags, System::Cardinal ulReserved);
  216. extern System::Cardinal __fastcall MapiSendMail(System::Cardinal lhSession, System::Cardinal ulUIParam
  217.     , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved);
  218. extern System::Cardinal __fastcall MapiSendDocuments(System::Cardinal ulUIParam, System::PChar lpszDelimChar
  219.     , System::PChar lpszFilePaths, System::PChar lpszFileNames, System::Cardinal ulReserved);
  220. extern System::Cardinal __fastcall MapiFindNext(System::Cardinal lhSession, System::Cardinal ulUIParam
  221.     , System::PChar lpszMessageType, System::PChar lpszSeedMessageID, System::Cardinal flFlags, System::Cardinal 
  222.     ulReserved, System::PChar lpszMessageID);
  223. extern System::Cardinal __fastcall MapiReadMail(System::Cardinal lhSession, System::Cardinal ulUIParam
  224.     , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiMessage 
  225.     &lppMessage);
  226. extern System::Cardinal __fastcall MapiSaveMail(System::Cardinal lhSession, System::Cardinal ulUIParam
  227.     , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved, System::PChar lpszMessageID
  228.     );
  229. extern System::Cardinal __fastcall MapiDeleteMail(System::Cardinal lhSession, System::Cardinal ulUIParam
  230.     , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved);
  231. extern System::Cardinal __fastcall MapiFreeBuffer(System::Pointer pv);
  232. extern System::Cardinal __fastcall MapiAddress(System::Cardinal lhSession, System::Cardinal ulUIParam
  233.     , System::PChar lpszCaption, System::Cardinal nEditFields, System::PChar lpszLabels, System::Cardinal 
  234.     nRecips, TMapiRecipDesc &lpRecips, System::Cardinal flFlags, System::Cardinal ulReserved, Windows::PULONG 
  235.     lpnNewRecips, PMapiRecipDesc &lppNewRecips);
  236. extern System::Cardinal __fastcall MapiDetails(System::Cardinal lhSession, System::Cardinal ulUIParam
  237.     , TMapiRecipDesc &lpRecip, System::Cardinal flFlags, System::Cardinal ulReserved);
  238. extern System::Cardinal __fastcall MapiResolveName(System::Cardinal lhSession, System::Cardinal ulUIParam
  239.     , System::PChar lpszName, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiRecipDesc &lppRecip
  240.     );
  241.  
  242. }    /* namespace Mapi */
  243. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  244. using namespace Mapi;
  245. #endif
  246. //-- end unit ----------------------------------------------------------------
  247. #endif    // Mapi
  248.