Fixed make uninstall.
[wine] / include / mapi.h
1 #ifndef MAPI_H
2 #define MAPI_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* Some types */
9
10 #ifndef __LHANDLE
11 #define __LHANDLE
12 typedef unsigned long           LHANDLE, *LPLHANDLE;
13 #endif
14 #define lhSessionNull           ((LHANDLE)0)
15
16 typedef unsigned long           FLAGS;
17
18 typedef struct
19 {
20     ULONG ulReserved;
21     ULONG flFlags;
22     ULONG nPosition;
23     LPSTR lpszPathName;
24     LPSTR lpszFileName;
25     LPVOID lpFileType;
26 } MapiFileDesc, *lpMapiFileDesc;
27
28 typedef struct
29 {
30     ULONG ulReserved;
31     ULONG ulRecipClass;
32     LPSTR lpszName;
33     LPSTR lpszAddress;
34     ULONG ulEIDSize;
35     LPVOID lpEntryID;
36 } MapiRecipDesc, *lpMapiRecipDesc;
37
38 typedef struct
39 {
40     ULONG ulReserved;
41     LPSTR lpszSubject;
42     LPSTR lpszNoteText;
43     LPSTR lpszMessageType;
44     LPSTR lpszDateReceived;
45     LPSTR lpszConversationID;
46     FLAGS flFlags;
47     lpMapiRecipDesc lpOriginator;
48     ULONG nRecipCount;
49     lpMapiRecipDesc lpRecips;
50     ULONG nFileCount;
51     lpMapiFileDesc lpFiles;
52 } MapiMessage, *lpMapiMessage;
53
54
55 /* Error codes */
56
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
86
87
88 /* MAPILogon */
89
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
95
96
97 /* MAPISendMail */
98
99 #define MAPI_DIALOG             0x00000008
100
101
102 #ifdef __cplusplus
103 }
104 #endif
105
106 #endif /* MAPI_H */