Fixed _wstrdate/_wstrtime parameters.
[wine.git] / include / mapicode.h
blob77172f52a4c090cc2bf01ecccb94fd61b22d49cc
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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 /* Errors */
33 #define MAPI_E_ACCOUNT_DISABLED ((SCODE)0x80040124)
34 #define MAPI_E_AMBIGUOUS_RECIP ((SCODE)0x80040700)
35 #define MAPI_E_BAD_CHARWIDTH ((SCODE)0x80040103)
36 #define MAPI_E_BAD_COLUMN ((SCODE)0x80040118)
37 #define MAPI_E_BAD_VALUE ((SCODE)0x80040301)
38 #define MAPI_E_BUSY ((SCODE)0x8004010B)
39 #define MAPI_E_CALL_FAILED E_FAIL
40 #define MAPI_E_CANCEL ((SCODE)0x80040501)
41 #define MAPI_E_COLLISION ((SCODE)0x80040604)
42 #define MAPI_E_COMPUTED ((SCODE)0x8004011A)
43 #define MAPI_E_CORRUPT_DATA ((SCODE)0x8004011B)
44 #define MAPI_E_CORRUPT_STORE ((SCODE)0x80040600)
45 #define MAPI_E_DECLINE_COPY ((SCODE)0x80040306)
46 #define MAPI_E_DISK_ERROR ((SCODE)0x80040116)
47 #define MAPI_E_END_OF_SESSION ((SCODE)0x80040200)
48 #define MAPI_E_EXTENDED_ERROR ((SCODE)0x80040119)
49 #define MAPI_E_FAILONEPROVIDER ((SCODE)0x8004011D)
50 #define MAPI_E_FOLDER_CYCLE ((SCODE)0x8004060B)
51 #define MAPI_E_HAS_FOLDERS ((SCODE)0x80040609)
52 #define MAPI_E_HAS_MESSAGES ((SCODE)0x8004060A)
53 #define MAPI_E_INTERFACE_NOT_SUPPORTED E_NOINTERFACE
54 #define MAPI_E_INVALID_ACCESS_TIME ((SCODE)0x80040123)
55 #define MAPI_E_INVALID_BOOKMARK ((SCODE)0x80040405)
56 #define MAPI_E_INVALID_ENTRYID ((SCODE)0x80040107)
57 #define MAPI_E_INVALID_OBJECT ((SCODE)0x80040108)
58 #define MAPI_E_INVALID_PARAMETER E_INVALIDARG
59 #define MAPI_E_INVALID_TYPE ((SCODE)0x80040302)
60 #define MAPI_E_INVALID_WORKSTATION_ACCOUNT ((SCODE)0x80040122)
61 #define MAPI_E_LOGON_FAILED ((SCODE)0x80040111)
62 #define MAPI_E_MISSING_REQUIRED_COLUMN ((SCODE)0x80040202)
63 #define MAPI_E_NETWORK_ERROR ((SCODE)0x80040115)
64 #define MAPI_E_NO_ACCESS E_ACCESSDENIED
65 #define MAPI_E_NON_STANDARD ((SCODE)0x80040606)
66 #define MAPI_E_NO_RECIPIENTS ((SCODE)0x80040607)
67 #define MAPI_E_NO_SUPPORT ((SCODE)0x80040102)
68 #define MAPI_E_NO_SUPPRESS ((SCODE)0x80040602)
69 #define MAPI_E_NOT_ENOUGH_DISK ((SCODE)0x8004010D)
70 #define MAPI_E_NOT_ENOUGH_MEMORY E_OUTOFMEMORY
71 #define MAPI_E_NOT_ENOUGH_RESOURCES ((SCODE)0x8004010E)
72 #define MAPI_E_NOT_FOUND ((SCODE)0x8004010F)
73 #define MAPI_E_NOT_INITIALIZED ((SCODE)0x80040605)
74 #define MAPI_E_NOT_IN_QUEUE ((SCODE)0x80040601)
75 #define MAPI_E_NOT_ME ((SCODE)0x80040502)
76 #define MAPI_E_OBJECT_CHANGED ((SCODE)0x80040109)
77 #define MAPI_E_OBJECT_DELETED ((SCODE)0x8004010A)
78 #define MAPI_E_PASSWORD_CHANGE_REQUIRED ((SCODE)0x80040120)
79 #define MAPI_E_PASSWORD_EXPIRED ((SCODE)0x80040121)
80 #define MAPI_E_SESSION_LIMIT ((SCODE)0x80040112)
81 #define MAPI_E_STRING_TOO_LONG ((SCODE)0x80040105)
82 #define MAPI_E_SUBMITTED ((SCODE)0x80040608)
83 #define MAPI_E_TABLE_EMPTY ((SCODE)0x80040402)
84 #define MAPI_E_TABLE_TOO_BIG ((SCODE)0x80040403)
85 #define MAPI_E_TIMEOUT ((SCODE)0x80040401)
86 #define MAPI_E_TOO_BIG ((SCODE)0x80040305)
87 #define MAPI_E_TOO_COMPLEX ((SCODE)0x80040117)
88 #define MAPI_E_TYPE_NO_SUPPORT ((SCODE)0x80040303)
89 #define MAPI_E_UNABLE_TO_ABORT ((SCODE)0x80040114)
90 #define MAPI_E_UNABLE_TO_COMPLETE ((SCODE)0x80040400)
91 #define MAPI_E_UNCONFIGURED ((SCODE)0x8004011C)
92 #define MAPI_E_UNEXPECTED_ID ((SCODE)0x80040307)
93 #define MAPI_E_UNEXPECTED_TYPE ((SCODE)0x80040304)
94 #define MAPI_E_UNKNOWN_CPID ((SCODE)0x8004011E)
95 #define MAPI_E_UNKNOWN_ENTRYID ((SCODE)0x80040201)
96 #define MAPI_E_UNKNOWN_FLAGS ((SCODE)0x80040106)
97 #define MAPI_E_UNKNOWN_LCID ((SCODE)0x8004011F)
98 #define MAPI_E_USER_CANCEL ((SCODE)0x80040113)
99 #define MAPI_E_VERSION ((SCODE)0x80040110)
100 #define MAPI_E_WAIT ((SCODE)0x80040500)
102 /* Warnings */
103 #define MAPI_W_APPROX_COUNT ((SCODE)0x00040482)
104 #define MAPI_W_CANCEL_MESSAGE ((SCODE)0x00040580)
105 #define MAPI_W_ERRORS_RETURNED ((SCODE)0x00040380)
106 #define MAPI_W_NO_SERVICE ((SCODE)0x00040203)
107 #define MAPI_W_PARTIAL_COMPLETION ((SCODE)0x00040680)
108 #define MAPI_W_POSITION_CHANGED ((SCODE)0x00040481)
110 #endif /* MAPICODE_H */