* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H for
consistency.
2002-03-09 17:04:10 +08:00
|
|
|
#ifndef _MAPI_H
|
|
|
|
#define _MAPI_H
|
|
|
|
#if __GNUC__ >=3
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
2002-01-31 01:33:27 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SUCCESS_SUCCESS 0
|
|
|
|
#define MAPI_USER_ABORT 1
|
|
|
|
#define MAPI_E_USER_ABORT 1
|
|
|
|
#define MAPI_E_FAILURE 2
|
|
|
|
#define MAPI_E_LOGIN_FAILURE 3
|
|
|
|
#define MAPI_E_LOGON_FAILURE 3
|
|
|
|
#define MAPI_E_DISK_FULL 4
|
|
|
|
#define MAPI_E_INSUFFICIENT_MEMORY 5
|
|
|
|
#define MAPI_E_ACCESS_DENIED 6
|
|
|
|
#define MAPI_E_BLK_TOO_SMALL 6
|
|
|
|
#define MAPI_E_TOO_MANY_SESSIONS 8
|
|
|
|
#define MAPI_E_TOO_MANY_FILES 9
|
|
|
|
#define MAPI_E_TOO_MANY_RECIPIENTS 10
|
|
|
|
#define MAPI_E_ATTACHMENT_NOT_FOUND 11
|
|
|
|
#define MAPI_E_ATTACHMENT_OPEN_FAILURE 12
|
|
|
|
#define MAPI_E_ATTACHMENT_WRITE_FAILURE 13
|
|
|
|
#define MAPI_E_UNKNOWN_RECIPIENT 14
|
|
|
|
#define MAPI_E_BAD_RECIPTYPE 15
|
|
|
|
#define MAPI_E_NO_MESSAGES 16
|
|
|
|
#define MAPI_E_INVALID_MESSAGE 17
|
|
|
|
#define MAPI_E_TEXT_TOO_LARGE 18
|
|
|
|
#define MAPI_E_INVALID_SESSION 19
|
|
|
|
#define MAPI_E_TYPE_NOT_SUPPORTED 20
|
|
|
|
#define MAPI_E_AMBIGUOUS_RECIPIENT 21
|
|
|
|
#define MAPI_E_AMBIGUOUS_RECIP 21
|
|
|
|
#define MAPI_E_MESSAGE_IN_USE 22
|
|
|
|
#define MAPI_E_NETWORK_FAILURE 23
|
|
|
|
#define MAPI_E_INVALID_EDITFIELDS 24
|
|
|
|
#define MAPI_E_INVALID_RECIPS 25
|
|
|
|
#define MAPI_E_NOT_SUPPORTED 26
|
|
|
|
|
|
|
|
#define MAPI_ORIG 0
|
|
|
|
#define MAPI_TO 1
|
|
|
|
#define MAPI_CC 2
|
|
|
|
#define MAPI_BCC 3
|
|
|
|
|
|
|
|
#define MAPI_LOGON_UI 0x0001
|
|
|
|
#define MAPI_NEW_SESSION 0x0002
|
|
|
|
#define MAPI_FORCE_DOWNLOAD 0x1000
|
|
|
|
#define MAPI_LOGOFF_SHARED 0x0001
|
|
|
|
#define MAPI_LOGOFF_UI 0x0002
|
|
|
|
#define MAPI_DIALOG 0x0008
|
|
|
|
#define MAPI_UNREAD_ONLY 0x0020
|
|
|
|
#define MAPI_LONG_MSGID 0x4000
|
|
|
|
#define MAPI_GUARANTEE_FIFO 0x0100
|
|
|
|
#define MAPI_ENVELOPE_ONLY 0x0040
|
|
|
|
#define MAPI_PEEK 0x0080
|
|
|
|
#define MAPI_BODY_AS_FILE 0x0200
|
|
|
|
#define MAPI_SUPPRESS_ATTACH 0x0800
|
|
|
|
#define MAPI_AB_NOMODIFY 0x0400
|
|
|
|
#define MAPI_OLE 0x0001
|
|
|
|
#define MAPI_OLE_STATIC 0x0002
|
|
|
|
#define MAPI_UNREAD 0x0001
|
|
|
|
#define MAPI_RECEIPT_REQUESTED 0x0002
|
|
|
|
#define MAPI_SENT 0x0004
|
|
|
|
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
typedef unsigned long FLAGS;
|
|
|
|
typedef unsigned long LHANDLE;
|
|
|
|
typedef unsigned long FAR *LPLHANDLE, FAR *LPULONG;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
ULONG ulReserved;
|
|
|
|
ULONG ulRecipClass;
|
2002-06-07 08:30:17 +08:00
|
|
|
LPSTR lpszName;
|
|
|
|
LPSTR lpszAddress;
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG ulEIDSize;
|
|
|
|
LPVOID lpEntryID;
|
|
|
|
} MapiRecipDesc, *lpMapiRecipDesc;
|
|
|
|
typedef struct {
|
|
|
|
ULONG ulReserved;
|
|
|
|
ULONG flFlags;
|
|
|
|
ULONG nPosition;
|
2002-06-07 08:30:17 +08:00
|
|
|
LPSTR lpszPathName;
|
|
|
|
LPSTR lpszFileName;
|
2002-01-31 01:33:27 +08:00
|
|
|
LPVOID lpFileType;
|
|
|
|
} MapiFileDesc, *lpMapiFileDesc;
|
|
|
|
typedef struct {
|
|
|
|
ULONG ulReserved;
|
|
|
|
ULONG cbTag;
|
|
|
|
LPBYTE lpTag;
|
|
|
|
ULONG cbEncoding;
|
|
|
|
LPBYTE lpEncoding;
|
|
|
|
} MapiFileTagExt, *lpMapiFileTagExt;
|
|
|
|
typedef struct {
|
|
|
|
ULONG ulReserved;
|
2002-06-07 08:30:17 +08:00
|
|
|
LPSTR lpszSubject;
|
|
|
|
LPSTR lpszNoteText;
|
|
|
|
LPSTR lpszMessageType;
|
|
|
|
LPSTR lpszDateReceived;
|
|
|
|
LPSTR lpszConversationID;
|
2002-01-31 01:33:27 +08:00
|
|
|
FLAGS flFlags;
|
|
|
|
lpMapiRecipDesc lpOriginator;
|
|
|
|
ULONG nRecipCount;
|
|
|
|
lpMapiRecipDesc lpRecips;
|
|
|
|
ULONG nFileCount;
|
|
|
|
lpMapiFileDesc lpFiles;
|
|
|
|
} MapiMessage, *lpMapiMessage;
|
|
|
|
|
2002-06-07 08:30:17 +08:00
|
|
|
ULONG PASCAL MAPILogon (ULONG,LPSTR,LPSTR,FLAGS,ULONG,LPLHANDLE);
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG PASCAL MAPISendMail (LHANDLE,ULONG,lpMapiMessage,FLAGS,ULONG);
|
2002-06-07 08:30:17 +08:00
|
|
|
ULONG PASCAL MAPISendDocuments (ULONG,LPSTR,LPSTR,LPSTR,ULONG);
|
|
|
|
ULONG PASCAL MAPIReadMail (LHANDLE,ULONG,LPSTR,FLAGS,ULONG,
|
2002-01-31 01:33:27 +08:00
|
|
|
lpMapiMessage*);
|
2002-06-07 08:30:17 +08:00
|
|
|
ULONG PASCAL MAPIFindNext (LHANDLE,ULONG,LPSTR,LPSTR,FLAGS,ULONG,LPSTR);
|
|
|
|
ULONG PASCAL MAPIResolveName (LHANDLE,ULONG,LPSTR,FLAGS,ULONG,
|
2002-01-31 01:33:27 +08:00
|
|
|
lpMapiRecipDesc*);
|
2002-06-07 08:30:17 +08:00
|
|
|
ULONG PASCAL MAPIAddress (LHANDLE,ULONG,LPSTR,ULONG,LPSTR,ULONG,
|
2002-01-31 01:33:27 +08:00
|
|
|
lpMapiRecipDesc,FLAGS,ULONG,LPULONG,
|
|
|
|
lpMapiRecipDesc*);
|
|
|
|
ULONG PASCAL MAPIFreeBuffer (LPVOID);
|
|
|
|
ULONG PASCAL MAPIDetails (LHANDLE,ULONG,lpMapiRecipDesc,FLAGS,ULONG);
|
|
|
|
ULONG PASCAL MAPISaveMail (LHANDLE,ULONG,lpMapiMessage lpszMessage,
|
2002-06-07 08:30:17 +08:00
|
|
|
FLAGS,ULONG,LPSTR);
|
|
|
|
ULONG PASCAL MAPIDeleteMail (LHANDLE lpSession,ULONG,LPSTR,FLAGS,ULONG);
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG PASCAL MAPILogoff (LHANDLE,ULONG,FLAGS,ULONG);
|
|
|
|
/* Netscape extensions. */
|
|
|
|
ULONG PASCAL MAPIGetNetscapeVersion (void);
|
|
|
|
ULONG PASCAL MAPI_NSCP_SynchronizeClient (LHANDLE,ULONG);
|
|
|
|
|
|
|
|
/* Handles for use with GetProcAddress */
|
2002-06-07 08:30:17 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPILOGON) (ULONG,LPSTR,LPSTR,FLAGS,ULONG,
|
2002-01-31 01:33:27 +08:00
|
|
|
LPLHANDLE);
|
|
|
|
typedef ULONG (PASCAL * LPMAPISENDMAIL) (LHANDLE,ULONG,lpMapiMessage,
|
|
|
|
FLAGS,ULONG);
|
2002-06-07 08:30:17 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPISENDDOCUMENTS) (ULONG,LPSTR,LPSTR,
|
|
|
|
LPSTR,ULONG);
|
|
|
|
typedef ULONG (PASCAL * LPMAPIREADMAIL) (LHANDLE,ULONG,LPSTR,FLAGS,
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG,lpMapiMessage*);
|
2002-06-07 08:30:17 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPIFINDNEXT) (LHANDLE,ULONG,LPSTR,LPSTR,
|
|
|
|
FLAGS,ULONG,LPSTR);
|
|
|
|
typedef ULONG (PASCAL * LPMAPIRESOLVENAME) (LHANDLE,ULONG,LPSTR,FLAGS,
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG,lpMapiRecipDesc*);
|
2002-06-07 08:30:17 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPIADDRESS) (LHANDLE,ULONG,LPSTR,ULONG,LPSTR,
|
2002-01-31 01:33:27 +08:00
|
|
|
ULONG,lpMapiRecipDesc,FLAGS,ULONG,
|
|
|
|
LPULONG,lpMapiRecipDesc*);
|
|
|
|
typedef ULONG (PASCAL * LPMAPIFREEBUFFER) (LPVOID lpv);
|
|
|
|
typedef ULONG (PASCAL * LPMAPIDETAILS) (LHANDLE,ULONG,lpMapiRecipDesc,
|
|
|
|
FLAGS,ULONG);
|
|
|
|
typedef ULONG (PASCAL * LPMAPISAVEMAIL) (LHANDLE,ULONG,lpMapiMessage,
|
2002-06-07 08:30:17 +08:00
|
|
|
FLAGS,ULONG,LPSTR);
|
2002-01-31 01:33:27 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPIDELETEMAIL) (LHANDLE lpSession,ULONG,
|
2002-06-07 08:30:17 +08:00
|
|
|
LPSTR, FLAGS,ULONG);
|
2002-01-31 01:33:27 +08:00
|
|
|
typedef ULONG (PASCAL * LPMAPILOGOFF)(LHANDLE,ULONG,FLAGS,ULONG);
|
|
|
|
|
|
|
|
#endif /* RC_INVOKED */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H for
consistency.
2002-03-09 17:04:10 +08:00
|
|
|
#endif /* Not _MAPI_H */
|
2002-01-31 01:33:27 +08:00
|
|
|
|