oledberr.h 10 KB

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