12 typedef unsigned long LHANDLE, *LPLHANDLE;
14 #define lhSessionNull ((LHANDLE)0)
16 typedef unsigned long FLAGS;
26 } MapiFileDesc, *lpMapiFileDesc;
36 } MapiRecipDesc, *lpMapiRecipDesc;
43 LPSTR lpszMessageType;
44 LPSTR lpszDateReceived;
45 LPSTR lpszConversationID;
47 lpMapiRecipDesc lpOriginator;
49 lpMapiRecipDesc lpRecips;
51 lpMapiFileDesc lpFiles;
52 } MapiMessage, *lpMapiMessage;
57 #define SUCCESS_SUCCESS 0
58 #define MAPI_USER_ABORT 1
59 #define MAPI_E_USER_ABORT MAPI_USER_ABORT
60 #define MAPI_E_FAILURE 2
61 #define MAPI_E_LOGON_FAILURE 3
62 #define MAPI_E_LOGIN_FAILURE MAPI_E_LOGON_FAILURE
63 #define MAPI_E_DISK_FULL 4
64 #define MAPI_E_INSUFFICIENT_MEMORY 5
65 #define MAPI_E_ACCESS_DENIED 6
66 #define MAPI_E_TOO_MANY_SESSIONS 8
67 #define MAPI_E_TOO_MANY_FILES 9
68 #define MAPI_E_TOO_MANY_RECIPIENTS 10
69 #define MAPI_E_ATTACHMENT_NOT_FOUND 11
70 #define MAPI_E_ATTACHMENT_OPEN_FAILURE 12
71 #define MAPI_E_ATTACHMENT_WRITE_FAILURE 13
72 #define MAPI_E_UNKNOWN_RECIPIENT 14
73 #define MAPI_E_BAD_RECIPTYPE 15
74 #define MAPI_E_NO_MESSAGES 16
75 #define MAPI_E_INVALID_MESSAGE 17
76 #define MAPI_E_TEXT_TOO_LARGE 18
77 #define MAPI_E_INVALID_SESSION 19
78 #define MAPI_E_TYPE_NOT_SUPPORTED 20
79 #define MAPI_E_AMBIGUOUS_RECIPIENT 21
80 #define MAPI_E_AMBIG_RECIP MAPI_E_AMBIGUOUS_RECIPIENT
81 #define MAPI_E_MESSAGE_IN_USE 22
82 #define MAPI_E_NETWORK_FAILURE 23
83 #define MAPI_E_INVALID_EDITFIELDS 24
84 #define MAPI_E_INVALID_RECIPS 25
85 #define MAPI_E_NOT_SUPPORTED 26
90 #define MAPI_LOGON_UI 0x00000001
91 #define MAPI_PASSWORD_UI 0x00020000
92 #define MAPI_NEW_SESSION 0x00000002
93 #define MAPI_FORCE_DOWNLOAD 0x00001000
94 #define MAPI_EXTENDED 0x00000020
99 #define MAPI_DIALOG 0x00000008