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

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