home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Mapi.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: Mapi.pas
- //----------------------------------------------------------------------------
- #ifndef MapiHPP
- #define MapiHPP
- //----------------------------------------------------------------------------
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Mapi
- {
- //-- type declarations -------------------------------------------------------
- typedef System::Integer FLAGS;
-
- typedef System::Integer LHANDLE;
-
- typedef System::Cardinal *PLHANDLE;
-
- struct TMapiFileDesc;
- typedef TMapiFileDesc *PMapiFileDesc;
-
- struct TMapiFileDesc
- {
- System::Cardinal ulReserved;
- System::Cardinal flFlags;
- System::Cardinal nPosition;
- System::Char *lpszPathName;
- System::Char *lpszFileName;
- void *lpFileType;
- } ;
-
- struct TMapiFileTagExt;
- typedef TMapiFileTagExt *PMapiFileTagExt;
-
- struct TMapiFileTagExt
- {
- System::Cardinal ulReserved;
- System::Cardinal cbTag;
- System::Byte *lpTag;
- System::Cardinal cbEncoding;
- System::Byte *lpEncoding;
- } ;
-
- struct TMapiRecipDesc;
- typedef TMapiRecipDesc *PMapiRecipDesc;
-
- struct TMapiRecipDesc
- {
- System::Cardinal ulReserved;
- System::Cardinal ulRecipClass;
- System::Char *lpszName;
- System::Char *lpszAddress;
- System::Cardinal ulEIDSize;
- void *lpEntryID;
- } ;
-
- struct TMapiMessage;
- typedef TMapiMessage *PMapiMessage;
-
- struct TMapiMessage
- {
- System::Cardinal ulReserved;
- System::Char *lpszSubject;
- System::Char *lpszNoteText;
- System::Char *lpszMessageType;
- System::Char *lpszDateReceived;
- System::Char *lpszConversationID;
- System::Cardinal flFlags;
- TMapiRecipDesc *lpOriginator;
- System::Cardinal nRecipCount;
- TMapiRecipDesc *lpRecips;
- System::Cardinal nFileCount;
- TMapiFileDesc *lpFiles;
- } ;
-
- typedef System::Cardinal __stdcall (*TFNMapiLogOn)(System::Cardinal ulUIParam, System::PChar lpszProfileName
- , System::PChar lpszPassword, System::Cardinal flFlags, System::Cardinal ulReserved, PLHANDLE lplhSession
- );
-
- typedef TFNMapiLogOn *PFNMapiLogon;
-
- typedef System::Cardinal __stdcall (*TFNMapiLogOff)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::Cardinal flFlags, System::Cardinal ulReserved);
-
- typedef TFNMapiLogOff *PFNMapiLogOff;
-
- typedef System::Cardinal __stdcall (*TFNMapiSendMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved);
-
- typedef TFNMapiSendMail *PFNMapiSendMail;
-
- typedef System::Cardinal __stdcall (*TFNMapiSendDocuments)(System::Cardinal ulUIParam, System::PChar
- lpszDelimChar, System::PChar lpszFilePaths, System::PChar lpszFileNames, System::Cardinal ulReserved
- );
-
- typedef TFNMapiSendDocuments *PFNMapiSendDocuments;
-
- typedef System::Cardinal __stdcall (*TFNMapiFindNext)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszMessageType, System::PChar lpszSeedMessageID, System::Cardinal flFlags, System::Cardinal
- ulReserved, System::PChar lpszMessageID);
-
- typedef TFNMapiFindNext *PFNMapiFindNext;
-
- typedef System::Cardinal __stdcall (*TFNMapiReadMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiMessage
- &lppMessage);
-
- typedef TFNMapiReadMail *PFNMapiReadMail;
-
- typedef System::Cardinal __stdcall (*TFNMapiSaveMail)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved, System::PChar lpszMessageID
- );
-
- typedef TFNMapiSaveMail *PFNMapiSaveMail;
-
- typedef System::Cardinal __stdcall (*TFNMapiDeleteMail)(System::Cardinal lhSession, System::Cardinal
- ulUIParam, System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved);
-
- typedef TFNMapiDeleteMail *PFNMapiDeleteMail;
-
- typedef System::Cardinal __stdcall (*TFNMapiFreeBuffer)(System::Pointer pv);
-
- typedef TFNMapiFreeBuffer *PFNMapiFreeBuffer;
-
- typedef System::Cardinal __stdcall (*TFNMapiAddress)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszCaption, System::Cardinal nEditFields, System::PChar lpszLabels, System::Cardinal
- nRecips, TMapiRecipDesc &lpRecips, System::Cardinal flFlags, System::Cardinal ulReserved, Windows::PULONG
- lpnNewRecips, PMapiRecipDesc &lppNewRecips);
-
- typedef TFNMapiAddress *PFNMapiAddress;
-
- typedef System::Cardinal __stdcall (*TFNMapiDetails)(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiRecipDesc &lpRecip, System::Cardinal flFlags, System::Cardinal ulReserved);
-
- typedef TFNMapiDetails *PFNMapiDetails;
-
- typedef System::Cardinal __stdcall (*TFNMapiResolveName)(System::Cardinal lhSession, System::Cardinal
- ulUIParam, System::PChar lpszName, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiRecipDesc
- &lppRecip);
-
- typedef TFNMapiResolveName *PFNMapiResolveName;
-
- //-- var, const, procedure ---------------------------------------------------
- #define lhSessionNull System::Byte(0)
- #define MAPI_OLE System::Byte(1)
- #define MAPI_OLE_STATIC System::Byte(2)
- #define MAPI_ORIG System::Byte(0)
- #define MAPI_TO System::Byte(1)
- #define MAPI_CC System::Byte(2)
- #define MAPI_BCC System::Byte(3)
- #define MAPI_UNREAD System::Byte(1)
- #define MAPI_RECEIPT_REQUESTED System::Byte(2)
- #define MAPI_SENT System::Byte(4)
- #define MAPI_LOGON_UI System::Byte(1)
- #define MAPI_PASSWORD_UI System::Integer(131072)
- #define MAPI_NEW_SESSION System::Byte(2)
- #define MAPI_FORCE_DOWNLOAD System::Smallint(4096)
- #define MAPI_ALLOW_OTHERS System::Byte(8)
- #define MAPI_EXPLICIT_PROFILE System::Byte(16)
- #define MAPI_EXTENDED System::Byte(32)
- #define MAPI_USE_DEFAULT System::Byte(64)
- #define MAPI_SIMPLE_DEFAULT System::Smallint(4105)
- #define MAPI_SIMPLE_EXPLICIT System::Smallint(4114)
- #define MAPI_LOGOFF_SHARED System::Byte(1)
- #define MAPI_LOGOFF_UI System::Byte(2)
- #define MAPI_DIALOG System::Byte(8)
- #define MAPI_UNREAD_ONLY System::Byte(32)
- #define MAPI_GUARANTEE_FIFO System::Smallint(256)
- #define MAPI_LONG_MSGID System::Smallint(16384)
- #define MAPI_PEEK System::Byte(128)
- #define MAPI_SUPPRESS_ATTACH System::Smallint(2048)
- #define MAPI_ENVELOPE_ONLY System::Byte(64)
- #define MAPI_BODY_AS_FILE System::Smallint(512)
- #define MAPI_AB_NOMODIFY System::Smallint(1024)
- #define SUCCESS_SUCCESS System::Byte(0)
- #define MAPI_USER_ABORT System::Byte(1)
- #define MAPI_E_USER_ABORT System::Byte(1)
- #define MAPI_E_FAILURE System::Byte(2)
- #define MAPI_E_LOGON_FAILURE System::Byte(3)
- #define MAPI_E_LOGIN_FAILURE System::Byte(3)
- #define MAPI_E_DISK_FULL System::Byte(4)
- #define MAPI_E_INSUFFICIENT_MEMORY System::Byte(5)
- #define MAPI_E_ACCESS_DENIED System::Byte(6)
- #define MAPI_E_TOO_MANY_SESSIONS System::Byte(8)
- #define MAPI_E_TOO_MANY_FILES System::Byte(9)
- #define MAPI_E_TOO_MANY_RECIPIENTS System::Byte(10)
- #define MAPI_E_ATTACHMENT_NOT_FOUND System::Byte(11)
- #define MAPI_E_ATTACHMENT_OPEN_FAILURE System::Byte(12)
- #define MAPI_E_ATTACHMENT_WRITE_FAILURE System::Byte(13)
- #define MAPI_E_UNKNOWN_RECIPIENT System::Byte(14)
- #define MAPI_E_BAD_RECIPTYPE System::Byte(15)
- #define MAPI_E_NO_MESSAGES System::Byte(16)
- #define MAPI_E_INVALID_MESSAGE System::Byte(17)
- #define MAPI_E_TEXT_TOO_LARGE System::Byte(18)
- #define MAPI_E_INVALID_SESSION System::Byte(19)
- #define MAPI_E_TYPE_NOT_SUPPORTED System::Byte(20)
- #define MAPI_E_AMBIGUOUS_RECIPIENT System::Byte(21)
- #define MAPI_E_AMBIG_RECIP System::Byte(21)
- #define MAPI_E_MESSAGE_IN_USE System::Byte(22)
- #define MAPI_E_NETWORK_FAILURE System::Byte(23)
- #define MAPI_E_INVALID_EDITFIELDS System::Byte(24)
- #define MAPI_E_INVALID_RECIPS System::Byte(25)
- #define MAPI_E_NOT_SUPPORTED System::Byte(26)
- extern System::AnsiString MAPIDLL;
- extern System::Cardinal __fastcall MapiLogOn(System::Cardinal ulUIParam, System::PChar lpszProfileName
- , System::PChar lpszPassword, System::Cardinal flFlags, System::Cardinal ulReserved, PLHANDLE lplhSession
- );
- extern System::Cardinal __fastcall MapiLogOff(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::Cardinal flFlags, System::Cardinal ulReserved);
- extern System::Cardinal __fastcall MapiSendMail(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved);
- extern System::Cardinal __fastcall MapiSendDocuments(System::Cardinal ulUIParam, System::PChar lpszDelimChar
- , System::PChar lpszFilePaths, System::PChar lpszFileNames, System::Cardinal ulReserved);
- extern System::Cardinal __fastcall MapiFindNext(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszMessageType, System::PChar lpszSeedMessageID, System::Cardinal flFlags, System::Cardinal
- ulReserved, System::PChar lpszMessageID);
- extern System::Cardinal __fastcall MapiReadMail(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiMessage
- &lppMessage);
- extern System::Cardinal __fastcall MapiSaveMail(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiMessage &lpMessage, System::Cardinal flFlags, System::Cardinal ulReserved, System::PChar lpszMessageID
- );
- extern System::Cardinal __fastcall MapiDeleteMail(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszMessageID, System::Cardinal flFlags, System::Cardinal ulReserved);
- extern System::Cardinal __fastcall MapiFreeBuffer(System::Pointer pv);
- extern System::Cardinal __fastcall MapiAddress(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszCaption, System::Cardinal nEditFields, System::PChar lpszLabels, System::Cardinal
- nRecips, TMapiRecipDesc &lpRecips, System::Cardinal flFlags, System::Cardinal ulReserved, Windows::PULONG
- lpnNewRecips, PMapiRecipDesc &lppNewRecips);
- extern System::Cardinal __fastcall MapiDetails(System::Cardinal lhSession, System::Cardinal ulUIParam
- , TMapiRecipDesc &lpRecip, System::Cardinal flFlags, System::Cardinal ulReserved);
- extern System::Cardinal __fastcall MapiResolveName(System::Cardinal lhSession, System::Cardinal ulUIParam
- , System::PChar lpszName, System::Cardinal flFlags, System::Cardinal ulReserved, PMapiRecipDesc &lppRecip
- );
-
- } /* namespace Mapi */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Mapi;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Mapi
-