1 | /*
|
---|
2 | * Status codes returned by MAPI
|
---|
3 | *
|
---|
4 | * Copyright (C) 2002 Aric Stewart
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef MAPICODE_H
|
---|
31 | #define MAPICODE_H
|
---|
32 |
|
---|
33 | #include <winerror.h>
|
---|
34 |
|
---|
35 | #define MAKE_MAPI_SCODE(sev,fac,code) \
|
---|
36 | ((SCODE)(((ULONG)(sev)<<31)|((ULONG)(fac)<<16)|((ULONG)(code))))
|
---|
37 |
|
---|
38 | #define MAKE_MAPI_E(e) (MAKE_MAPI_SCODE(1,FACILITY_ITF,(e)))
|
---|
39 | #define MAKE_MAPI_S(e) (MAKE_MAPI_SCODE(0,FACILITY_ITF,(e)))
|
---|
40 |
|
---|
41 | #ifndef SUCCESS_SUCCESS
|
---|
42 | #define SUCCESS_SUCCESS 0L
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | /* Errors */
|
---|
46 | #define MAPI_E_ACCOUNT_DISABLED ((SCODE)0x80040124)
|
---|
47 | #define MAPI_E_AMBIGUOUS_RECIP ((SCODE)0x80040700)
|
---|
48 | #define MAPI_E_BAD_CHARWIDTH ((SCODE)0x80040103)
|
---|
49 | #define MAPI_E_BAD_COLUMN ((SCODE)0x80040118)
|
---|
50 | #define MAPI_E_BAD_VALUE ((SCODE)0x80040301)
|
---|
51 | #define MAPI_E_BUSY ((SCODE)0x8004010B)
|
---|
52 | #define MAPI_E_CALL_FAILED E_FAIL
|
---|
53 | #define MAPI_E_CANCEL ((SCODE)0x80040501)
|
---|
54 | #define MAPI_E_COLLISION ((SCODE)0x80040604)
|
---|
55 | #define MAPI_E_COMPUTED ((SCODE)0x8004011A)
|
---|
56 | #define MAPI_E_CORRUPT_DATA ((SCODE)0x8004011B)
|
---|
57 | #define MAPI_E_CORRUPT_STORE ((SCODE)0x80040600)
|
---|
58 | #define MAPI_E_DECLINE_COPY ((SCODE)0x80040306)
|
---|
59 | #define MAPI_E_DISK_ERROR ((SCODE)0x80040116)
|
---|
60 | #define MAPI_E_END_OF_SESSION ((SCODE)0x80040200)
|
---|
61 | #define MAPI_E_EXTENDED_ERROR ((SCODE)0x80040119)
|
---|
62 | #define MAPI_E_FAILONEPROVIDER ((SCODE)0x8004011D)
|
---|
63 | #define MAPI_E_FOLDER_CYCLE ((SCODE)0x8004060B)
|
---|
64 | #define MAPI_E_HAS_FOLDERS ((SCODE)0x80040609)
|
---|
65 | #define MAPI_E_HAS_MESSAGES ((SCODE)0x8004060A)
|
---|
66 | #define MAPI_E_INTERFACE_NOT_SUPPORTED E_NOINTERFACE
|
---|
67 | #define MAPI_E_INVALID_ACCESS_TIME ((SCODE)0x80040123)
|
---|
68 | #define MAPI_E_INVALID_BOOKMARK ((SCODE)0x80040405)
|
---|
69 | #define MAPI_E_INVALID_ENTRYID ((SCODE)0x80040107)
|
---|
70 | #define MAPI_E_INVALID_OBJECT ((SCODE)0x80040108)
|
---|
71 | #define MAPI_E_INVALID_PARAMETER E_INVALIDARG
|
---|
72 | #define MAPI_E_INVALID_TYPE ((SCODE)0x80040302)
|
---|
73 | #define MAPI_E_INVALID_WORKSTATION_ACCOUNT ((SCODE)0x80040122)
|
---|
74 | #define MAPI_E_LOGON_FAILED ((SCODE)0x80040111)
|
---|
75 | #define MAPI_E_MISSING_REQUIRED_COLUMN ((SCODE)0x80040202)
|
---|
76 | #define MAPI_E_NETWORK_ERROR ((SCODE)0x80040115)
|
---|
77 | #define MAPI_E_NO_ACCESS E_ACCESSDENIED
|
---|
78 | #define MAPI_E_NON_STANDARD ((SCODE)0x80040606)
|
---|
79 | #define MAPI_E_NO_RECIPIENTS ((SCODE)0x80040607)
|
---|
80 | #define MAPI_E_NO_SUPPORT ((SCODE)0x80040102)
|
---|
81 | #define MAPI_E_NO_SUPPRESS ((SCODE)0x80040602)
|
---|
82 | #define MAPI_E_NOT_ENOUGH_DISK ((SCODE)0x8004010D)
|
---|
83 | #define MAPI_E_NOT_ENOUGH_MEMORY E_OUTOFMEMORY
|
---|
84 | #define MAPI_E_NOT_ENOUGH_RESOURCES ((SCODE)0x8004010E)
|
---|
85 | #define MAPI_E_NOT_FOUND ((SCODE)0x8004010F)
|
---|
86 | #define MAPI_E_NOT_INITIALIZED ((SCODE)0x80040605)
|
---|
87 | #define MAPI_E_NOT_IN_QUEUE ((SCODE)0x80040601)
|
---|
88 | #define MAPI_E_NOT_ME ((SCODE)0x80040502)
|
---|
89 | #define MAPI_E_OBJECT_CHANGED ((SCODE)0x80040109)
|
---|
90 | #define MAPI_E_OBJECT_DELETED ((SCODE)0x8004010A)
|
---|
91 | #define MAPI_E_PASSWORD_CHANGE_REQUIRED ((SCODE)0x80040120)
|
---|
92 | #define MAPI_E_PASSWORD_EXPIRED ((SCODE)0x80040121)
|
---|
93 | #define MAPI_E_SESSION_LIMIT ((SCODE)0x80040112)
|
---|
94 | #define MAPI_E_STRING_TOO_LONG ((SCODE)0x80040105)
|
---|
95 | #define MAPI_E_SUBMITTED ((SCODE)0x80040608)
|
---|
96 | #define MAPI_E_TABLE_EMPTY ((SCODE)0x80040402)
|
---|
97 | #define MAPI_E_TABLE_TOO_BIG ((SCODE)0x80040403)
|
---|
98 | #define MAPI_E_TIMEOUT ((SCODE)0x80040401)
|
---|
99 | #define MAPI_E_TOO_BIG ((SCODE)0x80040305)
|
---|
100 | #define MAPI_E_TOO_COMPLEX ((SCODE)0x80040117)
|
---|
101 | #define MAPI_E_TYPE_NO_SUPPORT ((SCODE)0x80040303)
|
---|
102 | #define MAPI_E_UNABLE_TO_ABORT ((SCODE)0x80040114)
|
---|
103 | #define MAPI_E_UNABLE_TO_COMPLETE ((SCODE)0x80040400)
|
---|
104 | #define MAPI_E_UNCONFIGURED ((SCODE)0x8004011C)
|
---|
105 | #define MAPI_E_UNEXPECTED_ID ((SCODE)0x80040307)
|
---|
106 | #define MAPI_E_UNEXPECTED_TYPE ((SCODE)0x80040304)
|
---|
107 | #define MAPI_E_UNKNOWN_CPID ((SCODE)0x8004011E)
|
---|
108 | #define MAPI_E_UNKNOWN_ENTRYID ((SCODE)0x80040201)
|
---|
109 | #define MAPI_E_UNKNOWN_FLAGS ((SCODE)0x80040106)
|
---|
110 | #define MAPI_E_UNKNOWN_LCID ((SCODE)0x8004011F)
|
---|
111 | #define MAPI_E_USER_CANCEL ((SCODE)0x80040113)
|
---|
112 | #define MAPI_E_VERSION ((SCODE)0x80040110)
|
---|
113 | #define MAPI_E_WAIT ((SCODE)0x80040500)
|
---|
114 |
|
---|
115 | /* Warnings */
|
---|
116 | #define MAPI_W_APPROX_COUNT ((SCODE)0x00040482)
|
---|
117 | #define MAPI_W_CANCEL_MESSAGE ((SCODE)0x00040580)
|
---|
118 | #define MAPI_W_ERRORS_RETURNED ((SCODE)0x00040380)
|
---|
119 | #define MAPI_W_NO_SERVICE ((SCODE)0x00040203)
|
---|
120 | #define MAPI_W_PARTIAL_COMPLETION ((SCODE)0x00040680)
|
---|
121 | #define MAPI_W_POSITION_CHANGED ((SCODE)0x00040481)
|
---|
122 |
|
---|
123 | #endif /* MAPICODE_H */
|
---|