oledb32: Free memory on error exit (Coverity).
[wine.git] / include / mapicode.h
blobb5bf686fa91fb1dda5075056b16dabb23bcfbb59
1 /*
2 * Status codes returned by MAPI
4 * Copyright (C) 2002 Aric Stewart
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.
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.
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
21 #ifndef MAPICODE_H
22 #define MAPICODE_H
24 #include <winerror.h>
26 #define MAKE_MAPI_SCODE(sev,fac,code) \
27 ((SCODE)(((ULONG)(sev)<<31)|((ULONG)(fac)<<16)|((ULONG)(code))))
29 #define MAKE_MAPI_E(e) (MAKE_MAPI_SCODE(1,FACILITY_ITF,(e)))
30 #define MAKE_MAPI_S(e) (MAKE_MAPI_SCODE(0,FACILITY_ITF,(e)))
32 #ifndef SUCCESS_SUCCESS
33 #define SUCCESS_SUCCESS __MSABI_LONG(0)
34 #endif
36 /* Errors */
37 #define MAPI_E_ACCOUNT_DISABLED ((SCODE)0x80040124)
38 #define MAPI_E_AMBIGUOUS_RECIP ((SCODE)0x80040700)
39 #define MAPI_E_BAD_CHARWIDTH ((SCODE)0x80040103)
40 #define MAPI_E_BAD_COLUMN ((SCODE)0x80040118)
41 #define MAPI_E_BAD_VALUE ((SCODE)0x80040301)
42 #define MAPI_E_BUSY ((SCODE)0x8004010B)
43 #define MAPI_E_CALL_FAILED E_FAIL
44 #define MAPI_E_CANCEL ((SCODE)0x80040501)
45 #define MAPI_E_COLLISION ((SCODE)0x80040604)
46 #define MAPI_E_COMPUTED ((SCODE)0x8004011A)
47 #define MAPI_E_CORRUPT_DATA ((SCODE)0x8004011B)
48 #define MAPI_E_CORRUPT_STORE ((SCODE)0x80040600)
49 #define MAPI_E_DECLINE_COPY ((SCODE)0x80040306)
50 #define MAPI_E_DISK_ERROR ((SCODE)0x80040116)
51 #define MAPI_E_END_OF_SESSION ((SCODE)0x80040200)
52 #define MAPI_E_EXTENDED_ERROR ((SCODE)0x80040119)
53 #define MAPI_E_FAILONEPROVIDER ((SCODE)0x8004011D)
54 #define MAPI_E_FOLDER_CYCLE ((SCODE)0x8004060B)
55 #define MAPI_E_HAS_FOLDERS ((SCODE)0x80040609)
56 #define MAPI_E_HAS_MESSAGES ((SCODE)0x8004060A)
57 #define MAPI_E_INTERFACE_NOT_SUPPORTED E_NOINTERFACE
58 #define MAPI_E_INVALID_ACCESS_TIME ((SCODE)0x80040123)
59 #define MAPI_E_INVALID_BOOKMARK ((SCODE)0x80040405)
60 #define MAPI_E_INVALID_ENTRYID ((SCODE)0x80040107)
61 #define MAPI_E_INVALID_OBJECT ((SCODE)0x80040108)
62 #define MAPI_E_INVALID_PARAMETER E_INVALIDARG
63 #define MAPI_E_INVALID_TYPE ((SCODE)0x80040302)
64 #define MAPI_E_INVALID_WORKSTATION_ACCOUNT ((SCODE)0x80040122)
65 #define MAPI_E_LOGON_FAILED ((SCODE)0x80040111)
66 #define MAPI_E_MISSING_REQUIRED_COLUMN ((SCODE)0x80040202)
67 #define MAPI_E_NETWORK_ERROR ((SCODE)0x80040115)
68 #define MAPI_E_NO_ACCESS E_ACCESSDENIED
69 #define MAPI_E_NON_STANDARD ((SCODE)0x80040606)
70 #define MAPI_E_NO_RECIPIENTS ((SCODE)0x80040607)
71 #define MAPI_E_NO_SUPPORT ((SCODE)0x80040102)
72 #define MAPI_E_NO_SUPPRESS ((SCODE)0x80040602)
73 #define MAPI_E_NOT_ENOUGH_DISK ((SCODE)0x8004010D)
74 #define MAPI_E_NOT_ENOUGH_MEMORY E_OUTOFMEMORY
75 #define MAPI_E_NOT_ENOUGH_RESOURCES ((SCODE)0x8004010E)
76 #define MAPI_E_NOT_FOUND ((SCODE)0x8004010F)
77 #define MAPI_E_NOT_INITIALIZED ((SCODE)0x80040605)
78 #define MAPI_E_NOT_IN_QUEUE ((SCODE)0x80040601)
79 #define MAPI_E_NOT_ME ((SCODE)0x80040502)
80 #define MAPI_E_OBJECT_CHANGED ((SCODE)0x80040109)
81 #define MAPI_E_OBJECT_DELETED ((SCODE)0x8004010A)
82 #define MAPI_E_PASSWORD_CHANGE_REQUIRED ((SCODE)0x80040120)
83 #define MAPI_E_PASSWORD_EXPIRED ((SCODE)0x80040121)
84 #define MAPI_E_SESSION_LIMIT ((SCODE)0x80040112)
85 #define MAPI_E_STRING_TOO_LONG ((SCODE)0x80040105)
86 #define MAPI_E_SUBMITTED ((SCODE)0x80040608)
87 #define MAPI_E_TABLE_EMPTY ((SCODE)0x80040402)
88 #define MAPI_E_TABLE_TOO_BIG ((SCODE)0x80040403)
89 #define MAPI_E_TIMEOUT ((SCODE)0x80040401)
90 #define MAPI_E_TOO_BIG ((SCODE)0x80040305)
91 #define MAPI_E_TOO_COMPLEX ((SCODE)0x80040117)
92 #define MAPI_E_TYPE_NO_SUPPORT ((SCODE)0x80040303)
93 #define MAPI_E_UNABLE_TO_ABORT ((SCODE)0x80040114)
94 #define MAPI_E_UNABLE_TO_COMPLETE ((SCODE)0x80040400)
95 #define MAPI_E_UNCONFIGURED ((SCODE)0x8004011C)
96 #define MAPI_E_UNEXPECTED_ID ((SCODE)0x80040307)
97 #define MAPI_E_UNEXPECTED_TYPE ((SCODE)0x80040304)
98 #define MAPI_E_UNKNOWN_CPID ((SCODE)0x8004011E)
99 #define MAPI_E_UNKNOWN_ENTRYID ((SCODE)0x80040201)
100 #define MAPI_E_UNKNOWN_FLAGS ((SCODE)0x80040106)
101 #define MAPI_E_UNKNOWN_LCID ((SCODE)0x8004011F)
102 #define MAPI_E_USER_CANCEL ((SCODE)0x80040113)
103 #define MAPI_E_VERSION ((SCODE)0x80040110)
104 #define MAPI_E_WAIT ((SCODE)0x80040500)
106 /* Warnings */
107 #define MAPI_W_APPROX_COUNT ((SCODE)0x00040482)
108 #define MAPI_W_CANCEL_MESSAGE ((SCODE)0x00040580)
109 #define MAPI_W_ERRORS_RETURNED ((SCODE)0x00040380)
110 #define MAPI_W_NO_SERVICE ((SCODE)0x00040203)
111 #define MAPI_W_PARTIAL_COMPLETION ((SCODE)0x00040680)
112 #define MAPI_W_POSITION_CHANGED ((SCODE)0x00040481)
114 #endif /* MAPICODE_H */