mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.3 KiB
102 lines
3.3 KiB
/* Simple MAPI functions */
|
|
|
|
#ifndef MAPI_H
|
|
#include <mapi.h>
|
|
#endif
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
|
|
extern HINSTANCE hlibMAPI;
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPILOGON)(ULONG ulUIParam, LPSTR lpszProfileName,
|
|
LPSTR lpszPassword, FLAGS flFlags, ULONG ulReserved, LPLHANDLE lplhSession);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPILOGOFF)(LHANDLE lhSession, ULONG ulUIParam,
|
|
FLAGS flFlags, ULONG ulReserved);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPISENDMAIL)(LHANDLE lhSession, ULONG ulUIParam,
|
|
lpMapiMessage lpMessage, FLAGS flFlags, ULONG ulReserved);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPISENDDOCUMENTS)(ULONG ulUIParam, LPSTR lpszDelimChar,
|
|
LPSTR lpszFilePaths, LPSTR lpszFileNames, ULONG ulReserved);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIFINDNEXT)(LHANDLE lhSession, ULONG ulUIParam,
|
|
LPSTR lpszMessageType, LPSTR lpszSeedMessageID, FLAGS flFlags,
|
|
ULONG ulReserved, LPSTR lpszMessageID);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIREADMAIL)(LHANDLE lhSession, ULONG ulUIParam,
|
|
LPSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved,
|
|
lpMapiMessage FAR *lppMessage);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPISAVEMAIL)(LHANDLE lhSession, ULONG ulUIParam,
|
|
lpMapiMessage lpMessage, FLAGS flFlags, ULONG ulReserved,
|
|
LPSTR lpszMessageID);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIDELETEMAIL)(LHANDLE lhSession, ULONG ulUIParam,
|
|
LPSTR lpszMessageID, FLAGS flFlags, ULONG ulReserved);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIFREEBUFFER)(LPVOID pv);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIADDRESS)(LHANDLE lhSession, ULONG ulUIParam,
|
|
LPSTR lpszCaption, ULONG nEditFields, LPSTR lpszLabels, ULONG nRecips,
|
|
lpMapiRecipDesc lpRecips, FLAGS flFlags, ULONG ulReserved,
|
|
LPULONG lpnNewRecips, lpMapiRecipDesc FAR *lppNewRecips);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIDETAILS)(LHANDLE lhSession, ULONG ulUIParam,
|
|
lpMapiRecipDesc lpRecip, FLAGS flFlags, ULONG ulReserved);
|
|
|
|
typedef ULONG (FAR PASCAL *LPFNMAPIRESOLVENAME)(LHANDLE lhSession, ULONG ulUIParam,
|
|
LPSTR lpszName, FLAGS flFlags, ULONG ulReserved,
|
|
lpMapiRecipDesc FAR *lppRecip);
|
|
|
|
extern LPFNMAPILOGON lpfnMAPILogon;
|
|
extern LPFNMAPILOGOFF lpfnMAPILogoff;
|
|
extern LPFNMAPISENDMAIL lpfnMAPISendMail;
|
|
extern LPFNMAPISENDDOCUMENTS lpfnMAPISendDocuments;
|
|
extern LPFNMAPIFINDNEXT lpfnMAPIFindNext;
|
|
extern LPFNMAPIREADMAIL lpfnMAPIReadMail;
|
|
extern LPFNMAPISAVEMAIL lpfnMAPISaveMail;
|
|
extern LPFNMAPIDELETEMAIL lpfnMAPIDeleteMail;
|
|
extern LPFNMAPIFREEBUFFER lpfnMAPIFreeBuffer;
|
|
extern LPFNMAPIADDRESS lpfnMAPIAddress;
|
|
extern LPFNMAPIDETAILS lpfnMAPIDetails;
|
|
extern LPFNMAPIRESOLVENAME lpfnMAPIResolveName;
|
|
|
|
#undef MAPILogon
|
|
#undef MAPILogoff
|
|
#undef MAPISendMail
|
|
#undef MAPISendDocuments
|
|
#undef MAPIFindNext
|
|
#undef MAPIReadMail
|
|
#undef MAPISaveMail
|
|
#undef MAPIDeleteMail
|
|
#undef MAPIFreeBuffer
|
|
#undef MAPIAddress
|
|
#undef MAPIDetails
|
|
#undef MAPIResolveName
|
|
#define MAPILogon (*lpfnMAPILogon)
|
|
#define MAPILogoff (*lpfnMAPILogoff)
|
|
#define MAPISendMail (*lpfnMAPISendMail)
|
|
#define MAPISendDocuments (*lpfnMAPISendDocuments)
|
|
#define MAPIFindNext (*lpfnMAPIFindNext)
|
|
#define MAPIReadMail (*lpfnMAPIReadMail)
|
|
#define MAPISaveMail (*lpfnMAPISaveMail)
|
|
#define MAPIDeleteMail (*lpfnMAPIDeleteMail)
|
|
#define MAPIFreeBuffer (*lpfnMAPIFreeBuffer)
|
|
#define MAPIAddress (*lpfnMAPIAddress)
|
|
#define MAPIDetails (*lpfnMAPIDetails)
|
|
#define MAPIResolveName (*lpfnMAPIResolveName)
|
|
|
|
extern BOOL InitSimpleMAPI(void);
|
|
extern void DeinitSimpleMAPI(void);
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
|