1 /**
2  * This file has no copyright assigned and is placed in the Public Domain.
3  * This file is part of the mingw-w64 runtime package.
4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5  */
6 #ifndef _MSADERR_H_
7 #define _MSADERR_H_
8 #ifndef FACILITY_WINDOWS
9 
10 #define FACILITY_WINDOWS 0x8
11 #define FACILITY_STORAGE 0x3
12 #define FACILITY_ITF 0x4
13 
14 #define STATUS_SEVERITY_SUCCESS 0x0
15 #define STATUS_SEVERITY_COERROR 0x2
16 
17 #define DB_E_BOGUS ((HRESULT)0x80040EFF)
18 #endif
19 
20 #ifndef OLEDBVER
21 #define OLEDBVER 0x0270
22 #endif
23 
24 #define DB_E_BADACCESSORHANDLE ((HRESULT)0x80040E00)
25 #define DB_E_ROWLIMITEXCEEDED ((HRESULT)0x80040E01)
26 #define DB_E_READONLYACCESSOR ((HRESULT)0x80040E02)
27 #define DB_E_SCHEMAVIOLATION ((HRESULT)0x80040E03)
28 #define DB_E_BADROWHANDLE ((HRESULT)0x80040E04)
29 #define DB_E_OBJECTOPEN ((HRESULT)0x80040E05)
30 
31 #if (OLEDBVER >= 0x0150)
32 #define DB_E_BADCHAPTER ((HRESULT)0x80040E06)
33 #endif
34 
35 #define DB_E_CANTCONVERTVALUE ((HRESULT)0x80040E07)
36 #define DB_E_BADBINDINFO ((HRESULT)0x80040E08)
37 #define DB_SEC_E_PERMISSIONDENIED ((HRESULT)0x80040E09)
38 #define DB_E_NOTAREFERENCECOLUMN ((HRESULT)0x80040E0A)
39 
40 #if (OLEDBVER >= 0x0250)
41 #define DB_E_LIMITREJECTED ((HRESULT)0x80040E0B)
42 #endif
43 
44 #define DB_E_NOCOMMAND ((HRESULT)0x80040E0C)
45 
46 #if (OLEDBVER >= 0x0250)
47 #define DB_E_COSTLIMIT ((HRESULT)0x80040E0D)
48 #endif
49 
50 #define DB_E_BADBOOKMARK ((HRESULT)0x80040E0E)
51 #define DB_E_BADLOCKMODE ((HRESULT)0x80040E0F)
52 #define DB_E_PARAMNOTOPTIONAL ((HRESULT)0x80040E10)
53 #define DB_E_BADCOLUMNID ((HRESULT)0x80040E11)
54 #define DB_E_BADRATIO ((HRESULT)0x80040E12)
55 
56 #if (OLEDBVER >= 0x0200)
57 #define DB_E_BADVALUES ((HRESULT)0x80040E13)
58 #endif
59 
60 #define DB_E_ERRORSINCOMMAND ((HRESULT)0x80040E14)
61 #define DB_E_CANTCANCEL ((HRESULT)0x80040E15)
62 #define DB_E_DIALECTNOTSUPPORTED ((HRESULT)0x80040E16)
63 #define DB_E_DUPLICATEDATASOURCE ((HRESULT)0x80040E17)
64 #define DB_E_CANNOTRESTART ((HRESULT)0x80040E18)
65 #define DB_E_NOTFOUND ((HRESULT)0x80040E19)
66 #define DB_E_NEWLYINSERTED ((HRESULT)0x80040E1B)
67 
68 #if (OLEDBVER >= 0x0250)
69 #define DB_E_CANNOTFREE ((HRESULT)0x80040E1A)
70 #define DB_E_GOALREJECTED ((HRESULT)0x80040E1C)
71 #endif
72 
73 #define DB_E_UNSUPPORTEDCONVERSION ((HRESULT)0x80040E1D)
74 #define DB_E_BADSTARTPOSITION ((HRESULT)0x80040E1E)
75 
76 #if (OLEDBVER >= 0x0200)
77 #define DB_E_NOQUERY ((HRESULT)0x80040E1F)
78 #endif
79 
80 #define DB_E_NOTREENTRANT ((HRESULT)0x80040E20)
81 #define DB_E_ERRORSOCCURRED ((HRESULT)0x80040E21)
82 #define DB_E_NOAGGREGATION ((HRESULT)0x80040E22)
83 #define DB_E_DELETEDROW ((HRESULT)0x80040E23)
84 #define DB_E_CANTFETCHBACKWARDS ((HRESULT)0x80040E24)
85 #define DB_E_ROWSNOTRELEASED ((HRESULT)0x80040E25)
86 #define DB_E_BADSTORAGEFLAG ((HRESULT)0x80040E26)
87 
88 #if (OLEDBVER >= 0x0150)
89 #define DB_E_BADCOMPAREOP ((HRESULT)0x80040E27)
90 #endif
91 
92 #define DB_E_BADSTATUSVALUE ((HRESULT)0x80040E28)
93 #define DB_E_CANTSCROLLBACKWARDS ((HRESULT)0x80040E29)
94 
95 #if (OLEDBVER >= 0x0250)
96 #define DB_E_BADREGIONHANDLE ((HRESULT)0x80040E2A)
97 #define DB_E_NONCONTIGUOUSRANGE ((HRESULT)0x80040E2B)
98 #define DB_E_INVALIDTRANSITION ((HRESULT)0x80040E2C)
99 #define DB_E_NOTASUBREGION ((HRESULT)0x80040E2D)
100 #endif
101 
102 #define DB_E_MULTIPLESTATEMENTS ((HRESULT)0x80040E2E)
103 #define DB_E_INTEGRITYVIOLATION ((HRESULT)0x80040E2F)
104 #define DB_E_BADTYPENAME ((HRESULT)0x80040E30)
105 #define DB_E_ABORTLIMITREACHED ((HRESULT)0x80040E31)
106 
107 #if (OLEDBVER >= 0x0200)
108 #define DB_E_ROWSETINCOMMAND ((HRESULT)0x80040E32)
109 #define DB_E_CANTTRANSLATE ((HRESULT)0x80040E33)
110 #endif
111 
112 #define DB_E_DUPLICATEINDEXID ((HRESULT)0x80040E34)
113 #define DB_E_NOINDEX ((HRESULT)0x80040E35)
114 #define DB_E_INDEXINUSE ((HRESULT)0x80040E36)
115 #define DB_E_NOTABLE ((HRESULT)0x80040E37)
116 #define DB_E_CONCURRENCYVIOLATION ((HRESULT)0x80040E38)
117 #define DB_E_BADCOPY ((HRESULT)0x80040E39)
118 #define DB_E_BADPRECISION ((HRESULT)0x80040E3A)
119 #define DB_E_BADSCALE ((HRESULT)0x80040E3B)
120 #define DB_E_BADTABLEID ((HRESULT)0x80040E3C)
121 #define DB_E_BADID DB_E_BADTABLEID
122 #define DB_E_BADTYPE ((HRESULT)0x80040E3D)
123 #define DB_E_DUPLICATECOLUMNID ((HRESULT)0x80040E3E)
124 #define DB_E_DUPLICATETABLEID ((HRESULT)0x80040E3F)
125 #define DB_E_TABLEINUSE ((HRESULT)0x80040E40)
126 #define DB_E_NOLOCALE ((HRESULT)0x80040E41)
127 #define DB_E_BADRECORDNUM ((HRESULT)0x80040E42)
128 #define DB_E_BOOKMARKSKIPPED ((HRESULT)0x80040E43)
129 #define DB_E_BADPROPERTYVALUE ((HRESULT)0x80040E44)
130 #define DB_E_INVALID ((HRESULT)0x80040E45)
131 #define DB_E_BADACCESSORFLAGS ((HRESULT)0x80040E46)
132 #define DB_E_BADSTORAGEFLAGS ((HRESULT)0x80040E47)
133 #define DB_E_BYREFACCESSORNOTSUPPORTED ((HRESULT)0x80040E48)
134 #define DB_E_NULLACCESSORNOTSUPPORTED ((HRESULT)0x80040E49)
135 #define DB_E_NOTPREPARED ((HRESULT)0x80040E4A)
136 #define DB_E_BADACCESSORTYPE ((HRESULT)0x80040E4B)
137 #define DB_E_WRITEONLYACCESSOR ((HRESULT)0x80040E4C)
138 #define DB_SEC_E_AUTH_FAILED ((HRESULT)0x80040E4D)
139 #define DB_E_CANCELED ((HRESULT)0x80040E4E)
140 
141 #if (OLEDBVER >= 0x0200)
142 #define DB_E_CHAPTERNOTRELEASED ((HRESULT)0x80040E4F)
143 #endif
144 
145 #define DB_E_BADSOURCEHANDLE ((HRESULT)0x80040E50)
146 #define DB_E_PARAMUNAVAILABLE ((HRESULT)0x80040E51)
147 #define DB_E_ALREADYINITIALIZED ((HRESULT)0x80040E52)
148 #define DB_E_NOTSUPPORTED ((HRESULT)0x80040E53)
149 #define DB_E_MAXPENDCHANGESEXCEEDED ((HRESULT)0x80040E54)
150 #define DB_E_BADORDINAL ((HRESULT)0x80040E55)
151 #define DB_E_PENDINGCHANGES ((HRESULT)0x80040E56)
152 #define DB_E_DATAOVERFLOW ((HRESULT)0x80040E57)
153 #define DB_E_BADHRESULT ((HRESULT)0x80040E58)
154 #define DB_E_BADLOOKUPID ((HRESULT)0x80040E59)
155 #define DB_E_BADDYNAMICERRORID ((HRESULT)0x80040E5A)
156 #define DB_E_PENDINGINSERT ((HRESULT)0x80040E5B)
157 #define DB_E_BADCONVERTFLAG ((HRESULT)0x80040E5C)
158 #define DB_E_BADPARAMETERNAME ((HRESULT)0x80040E5D)
159 #define DB_E_MULTIPLESTORAGE ((HRESULT)0x80040E5E)
160 #define DB_E_CANTFILTER ((HRESULT)0x80040E5F)
161 #define DB_E_CANTORDER ((HRESULT)0x80040E60)
162 
163 #if (OLEDBVER >= 0x0200)
164 #define MD_E_BADTUPLE ((HRESULT)0x80040E61)
165 #define MD_E_BADCOORDINATE ((HRESULT)0x80040E62)
166 #define MD_E_INVALIDAXIS ((HRESULT)0x80040E63)
167 #define MD_E_INVALIDCELLRANGE ((HRESULT)0x80040E64)
168 #define DB_E_NOCOLUMN ((HRESULT)0x80040E65)
169 #define DB_E_COMMANDNOTPERSISTED ((HRESULT)0x80040E67)
170 #define DB_E_DUPLICATEID ((HRESULT)0x80040E68)
171 #define DB_E_OBJECTCREATIONLIMITREACHED ((HRESULT)0x80040E69)
172 #define DB_E_BADINDEXID ((HRESULT)0x80040E72)
173 #define DB_E_BADINITSTRING ((HRESULT)0x80040E73)
174 #define DB_E_NOPROVIDERSREGISTERED ((HRESULT)0x80040E74)
175 #define DB_E_MISMATCHEDPROVIDER ((HRESULT)0x80040E75)
176 #define DB_E_BADCOMMANDID ((HRESULT)0x80040E76)
177 #endif
178 
179 #if (OLEDBVER >= 0x0210)
180 #define SEC_E_PERMISSIONDENIED DB_SEC_E_PERMISSIONDENIED
181 #define SEC_E_BADTRUSTEEID ((HRESULT)0x80040E6A)
182 #define SEC_E_NOTRUSTEEID ((HRESULT)0x80040E6B)
183 #define SEC_E_NOMEMBERSHIPSUPPORT ((HRESULT)0x80040E6C)
184 #define SEC_E_INVALIDOBJECT ((HRESULT)0x80040E6D)
185 #define SEC_E_NOOWNER ((HRESULT)0x80040E6E)
186 #define SEC_E_INVALIDACCESSENTRYLIST ((HRESULT)0x80040E6F)
187 #define SEC_E_INVALIDOWNER ((HRESULT)0x80040E70)
188 #define SEC_E_INVALIDACCESSENTRY ((HRESULT)0x80040E71)
189 #define DB_E_BADCONSTRAINTTYPE ((HRESULT)0x80040E77)
190 #define DB_E_BADCONSTRAINTFORM ((HRESULT)0x80040E78)
191 #define DB_E_BADDEFERRABILITY ((HRESULT)0x80040E79)
192 #define DB_E_BADMATCHTYPE ((HRESULT)0x80040E80)
193 #define DB_E_BADUPDATEDELETERULE ((HRESULT)0x80040E8A)
194 #define DB_E_BADCONSTRAINTID ((HRESULT)0x80040E8B)
195 #define DB_E_BADCOMMANDFLAGS ((HRESULT)0x80040E8C)
196 #define DB_E_OBJECTMISMATCH ((HRESULT)0x80040E8D)
197 #define DB_E_NOSOURCEOBJECT ((HRESULT)0x80040E91)
198 #define DB_E_RESOURCELOCKED ((HRESULT)0x80040E92)
199 #define DB_E_NOTCOLLECTION ((HRESULT)0x80040E93)
200 #define DB_E_READONLY ((HRESULT)0x80040E94)
201 #define DB_E_ASYNCNOTSUPPORTED ((HRESULT)0x80040E95)
202 #define DB_E_CANNOTCONNECT ((HRESULT)0x80040E96)
203 #define DB_E_TIMEOUT ((HRESULT)0x80040E97)
204 #define DB_E_RESOURCEEXISTS ((HRESULT)0x80040E98)
205 #define DB_E_RESOURCEOUTOFSCOPE ((HRESULT)0x80040E8E)
206 #define DB_E_DROPRESTRICTED ((HRESULT)0x80040E90)
207 #define DB_E_DUPLICATECONSTRAINTID ((HRESULT)0x80040E99)
208 #define DB_E_OUTOFSPACE ((HRESULT)0x80040E9A)
209 #define SEC_E_PERMISSIONDENIED DB_SEC_E_PERMISSIONDENIED
210 #endif
211 
212 #if (OLEDBVER >= 0x0250)
213 #define DB_SEC_E_SAFEMODE_DENIED ((HRESULT)0x80040E9B)
214 #endif
215 
216 #if (OLEDBVER >= 0x0260)
217 #define DB_E_NOSTATISTIC ((HRESULT)0x80040E9C)
218 #define DB_E_ALTERRESTRICTED ((HRESULT)0x80040E9D)
219 #define DB_E_RESOURCENOTSUPPORTED ((HRESULT)0x80040E9E)
220 #define DB_E_NOCONSTRAINT ((HRESULT)0x80040E9F)
221 #define DB_E_COLUMNUNAVAILABLE ((HRESULT)0x80040EA0)
222 #endif
223 
224 #define DB_S_ROWLIMITEXCEEDED ((HRESULT)0x00040EC0)
225 #define DB_S_COLUMNTYPEMISMATCH ((HRESULT)0x00040EC1)
226 #define DB_S_TYPEINFOOVERRIDDEN ((HRESULT)0x00040EC2)
227 #define DB_S_BOOKMARKSKIPPED ((HRESULT)0x00040EC3)
228 
229 #if (OLEDBVER >= 0x0200)
230 #define DB_S_NONEXTROWSET ((HRESULT)0x00040EC5)
231 #endif
232 
233 #define DB_S_ENDOFROWSET ((HRESULT)0x00040EC6)
234 #define DB_S_COMMANDREEXECUTED ((HRESULT)0x00040EC7)
235 #define DB_S_BUFFERFULL ((HRESULT)0x00040EC8)
236 #define DB_S_NORESULT ((HRESULT)0x00040EC9)
237 #define DB_S_CANTRELEASE ((HRESULT)0x00040ECA)
238 
239 #if (OLEDBVER >= 0x0250)
240 #define DB_S_GOALCHANGED ((HRESULT)0x00040ECB)
241 #endif
242 
243 #if (OLEDBVER >= 0x0150)
244 #define DB_S_UNWANTEDOPERATION ((HRESULT)0x00040ECC)
245 #endif
246 
247 #define DB_S_DIALECTIGNORED ((HRESULT)0x00040ECD)
248 #define DB_S_UNWANTEDPHASE ((HRESULT)0x00040ECE)
249 #define DB_S_UNWANTEDREASON ((HRESULT)0x00040ECF)
250 
251 #if (OLEDBVER >= 0x0150)
252 #define DB_S_ASYNCHRONOUS ((HRESULT)0x00040ED0)
253 #endif
254 
255 #define DB_S_COLUMNSCHANGED ((HRESULT)0x00040ED1)
256 #define DB_S_ERRORSRETURNED ((HRESULT)0x00040ED2)
257 #define DB_S_BADROWHANDLE ((HRESULT)0x00040ED3)
258 #define DB_S_DELETEDROW ((HRESULT)0x00040ED4)
259 
260 #if (OLEDBVER >= 0x0250)
261 #define DB_S_TOOMANYCHANGES ((HRESULT)0x00040ED5)
262 #endif
263 
264 #define DB_S_STOPLIMITREACHED ((HRESULT)0x00040ED6)
265 #define DB_S_LOCKUPGRADED ((HRESULT)0x00040ED8)
266 #define DB_S_PROPERTIESCHANGED ((HRESULT)0x00040ED9)
267 #define DB_S_ERRORSOCCURRED ((HRESULT)0x00040EDA)
268 #define DB_S_PARAMUNAVAILABLE ((HRESULT)0x00040EDB)
269 #define DB_S_MULTIPLECHANGES ((HRESULT)0x00040EDC)
270 
271 #if (OLEDBVER >= 0x0210)
272 #define DB_S_NOTSINGLETON ((HRESULT)0x00040ED7)
273 #define DB_S_NOROWSPECIFICCOLUMNS ((HRESULT)0x00040EDD)
274 #endif
275 
276 #ifdef MESSAGESANDHEADERS
277 #define STG_E_FILENOTFOUND ((HRESULT)0x80030002)
278 #define STG_E_PATHNOTFOUND ((HRESULT)0x80030003)
279 #define STG_E_FILEALREADYEXISTS ((HRESULT)0x80030050)
280 #define STG_E_INVALIDHEADER ((HRESULT)0x800300FB)
281 #define STG_E_INVALIDNAME ((HRESULT)0x800300FC)
282 #define STG_E_OLDFORMAT ((HRESULT)0x80030104)
283 #define STG_E_OLDDLL ((HRESULT)0x80030105)
284 #endif
285 #endif
286