Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

252 lines
12 KiB

  1. /*
  2. * D A V S C . H
  3. *
  4. * Extended error codes for DAV
  5. *
  6. * These error codes should be designed/implemented in such a way as to
  7. * provide better error code translations for returns to the client.
  8. *
  9. * Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  10. */
  11. #pragma once
  12. #ifndef _DAVSC_H_
  13. #define _DAVSC_H_
  14. #define FACILITY_DAV 21
  15. #define DAV_SCODE(_ids) MAKE_SCODE(SEVERITY_ERROR,FACILITY_DAV,_ids)
  16. #define DAV_WARNING(_ids) MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_DAV,_ids)
  17. // Core and/or common error codes range from 0x100-0x800
  18. // DAV Exchange reserves 0x001-0x0FF for IIS component errors
  19. // and 0x800-0xFFFF for server component errors.
  20. //
  21. #define E_DAV_NO_DESTINATION DAV_SCODE(0x100)
  22. #define E_DAV_BAD_DESTINATION DAV_SCODE(0x101)
  23. #define E_DAV_MALFORMED_PATH DAV_SCODE(0x102)
  24. #define E_DAV_CONFLICTING_PATHS DAV_SCODE(0x103)
  25. #define E_DAV_INVALID_HEADER DAV_SCODE(0x104)
  26. #define E_DAV_NO_IIS_ACCESS_RIGHTS DAV_SCODE(0x105)
  27. #define E_DAV_LOCKED DAV_SCODE(0x106)
  28. #define E_DAV_PROTECTED_ENTITY DAV_SCODE(0x107)
  29. #define E_DAV_NONEXISTING_PARENT DAV_SCODE(0x108)
  30. #define E_DAV_MISSING_LENGTH DAV_SCODE(0x109)
  31. #define E_DAV_ENTITY_NOT_LOCKED DAV_SCODE(0x10A)
  32. #define E_DAV_ENTITY_TYPE_CONFLICT DAV_SCODE(0x10B)
  33. #define E_DAV_ENTITY_NOT_MODIFIED DAV_SCODE(0x10C)
  34. #define E_DAV_IF_HEADER_FAILURE DAV_SCODE(0x10D)
  35. #define E_DAV_UNKNOWN_CONTENT DAV_SCODE(0x10E)
  36. #define E_DAV_RANGE_NOT_SATISFIABLE DAV_SCODE(0x10F)
  37. #define E_DAV_NO_PARTIAL_UPDATE DAV_SCODE(0x110)
  38. #define E_DAV_LOCK_NOT_FOUND DAV_SCODE(0x111)
  39. #define E_DAV_VOLUME_NOT_NTFS DAV_SCODE(0x112)
  40. #define E_DAV_PROPFIND_TYPE_UNEXPECTED DAV_SCODE(0x113)
  41. #define E_DAV_EMPTY_PATCH_REQUEST DAV_SCODE(0x114)
  42. #define E_DAV_EMPTY_FIND_REQUEST DAV_SCODE(0x115)
  43. #define E_DAV_PATCH_TYPE_MISMATCH DAV_SCODE(0x116)
  44. #define E_DAV_RESPONSE_TYPE_UNACCEPTED DAV_SCODE(0x117)
  45. #define E_DAV_BASE64_ENCODING_ERROR DAV_SCODE(0x118)
  46. #define E_DAV_METHOD_FORWARDED DAV_SCODE(0x119)
  47. #define E_DAV_READ_REQUEST_TIMEOUT DAV_SCODE(0x11A)
  48. #define E_DAV_INCOMPLETE_SQL_STATEMENT DAV_SCODE(0x11B)
  49. #define E_DAV_XML_PARSE_ERROR DAV_SCODE(0x11C)
  50. #define E_DAV_SMB_PROPERTY_ERROR DAV_SCODE(0x11D)
  51. #define E_DAV_OVERWRITE_REQUIRED DAV_SCODE(0x11E)
  52. #define E_DAV_NO_QUERY DAV_SCODE(0x11F)
  53. #define E_DAV_NAMED_PROPERTY_ERROR DAV_SCODE(0x120)
  54. #define E_DAV_UNEXPECTED_TYPE DAV_SCODE(0x121)
  55. #define E_DAV_COLLECTION_EXISTS DAV_SCODE(0x122)
  56. #define E_DAV_XML_DOM_ERROR DAV_SCODE(0x123)
  57. #define E_DAV_ROW_PACKING_ERROR DAV_SCODE(0x124)
  58. #define E_DAV_COLUMN_VALUE_NOT_FOUND DAV_SCODE(0x125)
  59. #define E_DAV_IPC_CONNECT_FAILED DAV_SCODE(0x126)
  60. #define E_DAV_IPC_ALLOC_FAILED DAV_SCODE(0x127)
  61. #define E_DAV_IPC_SEND_FAILED DAV_SCODE(0x128)
  62. #define E_DAV_IPC_REC_FAILED DAV_SCODE(0x129)
  63. #define E_DAV_IPC_IMPERSONATION_ERR DAV_SCODE(0x12A)
  64. #define E_DAV_INVALID_URI DAV_SCODE(0x12B)
  65. #define E_DAV_MISSING_CONTENT_TYPE DAV_SCODE(0x12C)
  66. #define E_DAV_IPC_CREATE_EVENT_FAIL DAV_SCODE(0x12D)
  67. #define E_DAV_REDIRECT_FAILED DAV_SCODE(0x12E)
  68. #define E_DAV_SHORT_FILENAME DAV_SCODE(0x12F)
  69. #define E_DAV_ALT_FILESTREAM DAV_SCODE(0x130)
  70. #define E_DAV_RESPONSE_INCOMPLETE DAV_SCODE(0x131)
  71. #define E_DAV_STAR_SCRIPTMAPING_MISMATCH DAV_SCODE(0x132)
  72. #define E_DAV_NO_IIS_READ_ACCESS DAV_SCODE(0x133)
  73. #define E_DAV_NO_IIS_WRITE_ACCESS DAV_SCODE(0x134)
  74. #define E_DAV_NO_IIS_EXECUTE_ACCESS DAV_SCODE(0x135)
  75. #define E_DAV_NO_ACL_ACCESS DAV_SCODE(0x136)
  76. #define E_DAV_METHOD_FAILURE_STAR_URL DAV_SCODE(0x137)
  77. #define E_DAV_SEARCH_SCOPE_ERROR DAV_SCODE(0x138)
  78. #define E_DAV_CANT_SATISFY_LOCK_REQUEST DAV_SCODE(0x139)
  79. #define E_DAV_CANT_PERSIST_SEARCH DAV_SCODE(0x13A)
  80. #define E_DAV_CANT_QUERY_ROWS DAV_SCODE(0x13B)
  81. #define E_DAV_CANT_MAKE_DBCOMMANDTREE DAV_SCODE(0x13C)
  82. #define E_DAV_UNSUPPORTED_SQL DAV_SCODE(0x13D)
  83. #define E_DAV_CANT_SEEK_ROW DAV_SCODE(0x13E)
  84. #define E_DAV_CANT_QUERY_POSITION DAV_SCODE(0x13F)
  85. #define E_DAV_EXPROX_CONNECT_FAILED DAV_SCODE(0x140)
  86. #define E_DAV_TRANSACTION_CACHE DAV_SCODE(0x141)
  87. #define E_DAV_NOTALLOWED_WITHIN_TRANSACTION DAV_SCODE(0x142)
  88. #define E_DAV_VIEW_NOT_FOUND DAV_SCODE(0x143)
  89. #define E_DAV_RSRC_NOT_FOUND DAV_SCODE(0x144)
  90. #define E_DAV_RSRC_INSUFFICIENT_BUFFER DAV_SCODE(0x145)
  91. #define E_DAV_FORBIDDEN DAV_SCODE(0x146)
  92. #define E_DAV_CONFLICT DAV_SCODE(0x147)
  93. #define E_DAV_INVALID_PROPERTY_NAME DAV_SCODE(0x148)
  94. #define E_DAV_HIDDEN_OBJECT DAV_SCODE(0x149)
  95. #define E_DAV_FORMS_HANDLER DAV_SCODE(0x14A)
  96. #define E_DAV_XML_BAD_DATA DAV_SCODE(0x14B)
  97. //unused DAV_SCODE(0x14C)
  98. #define E_DAV_NATIVE_CONTENT_NOT_MAPI DAV_SCODE(0x14D)
  99. // Special error to mark properties for which we have property streams open,
  100. // for seafety reasons do not use for anything else
  101. //
  102. #define E_DAV_USE_PROPERTY_STREAM DAV_SCODE(0x14E)
  103. #define E_DAV_PARTIAL_COLUMN DAV_SCODE(0x14F)
  104. // Error code used by exprox exception handler code
  105. //
  106. #define E_DAV_EXPROX_THREW_EXCEPTION DAV_SCODE(0x150)
  107. #define E_DAV_MAIL_SUBMISSION_FORBIDDEN DAV_SCODE(0x600)
  108. #define E_DAV_MKCOL_REVISION_ID_FORBIDDEN DAV_SCODE(0x601)
  109. #define E_DAV_MKCOL_NOT_ALLOWED_ON_NULL_RESOURCE DAV_SCODE(0x602)
  110. #define E_DAV_MKCOL_OBJECT_ALREADY_EXISTS DAV_SCODE(0x603)
  111. #define E_DAV_GET_DB_HELPER_FAILURE DAV_SCODE(0x604)
  112. #define E_DAV_NOTIF_SUBID_ERROR DAV_SCODE(0x605)
  113. #define E_DAV_NOTIF_POLL_FAILURE DAV_SCODE(0x606)
  114. #define W_DAV_RESPONSE_ALREADY_SENT DAV_WARNING(0x7EF)
  115. #define W_DAV_NOSAVECHANGESREQUIRED DAV_WARNING(0x7F0)
  116. #define W_DAV_NO_TARGETS DAV_WARNING(0x7F1)
  117. #define W_DAV_RELATIVE_URI DAV_WARNING(0x7F2)
  118. #define W_DAV_MOVED_TEMPORARILY DAV_WARNING(0x7F3)
  119. #define W_DAV_ESCAPED_SQL_TOKEN DAV_WARNING(0x7F4)
  120. #define W_DAV_NULL_RESOURCE DAV_WARNING(0x7F5)
  121. #define W_DAV_SEARCH_PENDING DAV_WARNING(0x7F6)
  122. #define W_DAV_SPANS_VIRTUAL_ROOTS DAV_WARNING(0x7F7)
  123. #define W_DAV_XML_NODE_NOT_CONSTRUCTED DAV_WARNING(0x7F8)
  124. #define W_DAV_SCRIPTMAP_MATCH_EXCLUDED DAV_WARNING(0x7F9)
  125. #define W_DAV_SCRIPTMAP_MATCH_FOUND DAV_WARNING(0x7FA)
  126. #define W_DAV_PARTIAL_CONTENT DAV_WARNING(0x7FB)
  127. #define W_DAV_NO_CONTENT DAV_WARNING(0x7FC)
  128. #define W_DAV_CREATED DAV_WARNING(0x7FD)
  129. #define W_DAV_PARTIAL_SUCCESS DAV_WARNING(0x7FE)
  130. #define W_DAV_VIEW_USE_DEFAULT DAV_WARNING(0x7FF)
  131. #define E_DAV_STORE_BAD_PATH DAV_SCODE(0x800)
  132. #define E_DAV_STORE_QUERY_SMTP_DOMAIN DAV_SCODE(0x801)
  133. #define E_DAV_STORE_OUTOFMEMORY DAV_SCODE(0x802)
  134. #define E_DAV_STORE_SESS_GET_INFO DAV_SCODE(0x803)
  135. // E_DAV_STORE_MDB_UNAVAILABLE is only sent when the public store
  136. // is hit, but it is dismounted.
  137. //
  138. #define E_DAV_STORE_MDB_UNAVAILABLE DAV_SCODE(0x804)
  139. #define E_DAV_STORE_GET_MAILBOX_GUID DAV_SCODE(0x805)
  140. #define E_DAV_STORE_LOGON_FAILED DAV_SCODE(0x806)
  141. #define E_DAV_STORE_ADD_LOGON DAV_SCODE(0x807)
  142. #define E_DAV_STORE_NOT_FOUND DAV_SCODE(0x808)
  143. #define E_DAV_STORE_CHECK_FOLDER_NAME DAV_SCODE(0x809)
  144. #define E_DAV_STORE_OPEN_FOLDER DAV_SCODE(0x80a)
  145. #define E_DAV_STORE_GET_TABLE DAV_SCODE(0x80b)
  146. #define E_DAV_STORE_SET_COLUMNS DAV_SCODE(0x80c)
  147. #define E_DAV_STORE_FIND_ROW DAV_SCODE(0x80d)
  148. #define E_DAV_STORE_OPEN_IMAIL_OBJ DAV_SCODE(0x80e)
  149. #define E_DAV_STORE_OPEN_IMAIL_STREAM DAV_SCODE(0x80f)
  150. #define E_DAV_STORE_STREAM_READ DAV_SCODE(0x810)
  151. #define E_DAV_STORE_NOTIMPL DAV_SCODE(0x811)
  152. #define E_DAV_STORE_SAVE_CHANGES_MSG DAV_SCODE(0x812)
  153. #define E_DAV_STORE_GET_SESS DAV_SCODE(0x813)
  154. #define E_DAV_STORE_SAVE_CHANGES_ATTACH DAV_SCODE(0x814)
  155. #define E_DAV_STORE_SESS_CONFIG DAV_SCODE(0x815)
  156. #define E_DAV_STORE_OUTOFSHAREDMEMORY DAV_SCODE(0x816)
  157. #define E_DAV_STORE_IPC_SEND DAV_SCODE(0x817)
  158. #define E_DAV_STORE_CHECK_RIGHTS_FOLD DAV_SCODE(0x818)
  159. #define E_DAV_STORE_CREATE_ATTACH DAV_SCODE(0x819)
  160. #define E_DAV_STORE_CREATE_TEMP_STREAM DAV_SCODE(0x81a)
  161. #define E_DAV_STORE_QUERY_ROWS DAV_SCODE(0x81b)
  162. #define E_DAV_STORE_STREAM_WRITE DAV_SCODE(0x81c)
  163. #define E_DAV_STORE_GET_PROPS DAV_SCODE(0x81d)
  164. #define E_DAV_SEARCH_COULD_NOT_RESTRICT DAV_SCODE(0x81e)
  165. #define E_DAV_STORE_INTERNAL DAV_SCODE(0x81f)
  166. #define E_DAV_STORE_OPEN_MSG DAV_SCODE(0x820)
  167. #define E_DAV_STORE_OPEN_ATTACH DAV_SCODE(0x821)
  168. #define E_DAV_STORE_OPEN_STREAM DAV_SCODE(0x822)
  169. #define E_DAV_STORE_MDB_STREAM_READ DAV_SCODE(0x823)
  170. #define E_DAV_STORE_CREATE_FOLDER DAV_SCODE(0x824)
  171. #define E_DAV_STORE_ALREADY_EXISTS DAV_SCODE(0x825)
  172. #define E_DAV_STORE_GET_TOKEN_INFO DAV_SCODE(0x826)
  173. #define E_DAV_STORE_LOOKUP_ACCOUNT_SID DAV_SCODE(0x827)
  174. #define E_DAV_STORE_SET_PROPS DAV_SCODE(0x828)
  175. #define E_DAV_STORE_DELETE DAV_SCODE(0x829)
  176. #define E_DAV_SEARCH_FOLDER_NOT_CREATED DAV_SCODE(0x82a)
  177. #define E_DAV_STORE_MOVE_COPY DAV_SCODE(0x830)
  178. #define E_DAV_STORE_DELETE_PROPS DAV_SCODE(0x831)
  179. #define E_DAV_STORE_SESSPOOLERROR DAV_SCODE(0x832)
  180. #define E_DAV_STORE_BEGIN_GOP DAV_SCODE(0x833)
  181. #define E_DAV_STORE_COMMIT_GOP DAV_SCODE(0x834)
  182. #define E_DAV_STORE_ROLLBACK_GOP DAV_SCODE(0x835)
  183. #define E_DAV_STORE_GET_IDS_FROM_NAMES DAV_SCODE(0x836)
  184. #define E_DAV_STORE_GET_NAMES_FROM_IDS DAV_SCODE(0x837)
  185. #define E_DAV_STORE_OP_REQUIRES_FOLDER DAV_SCODE(0x838)
  186. #define E_DAV_STORE_SEARCH_ERROR DAV_SCODE(0x839)
  187. #define E_DAV_STORE_SEARCH_UNSUPPORTED DAV_SCODE(0x83d)
  188. #define E_DAV_STORE_TOO_MANY_CONNECTIONS DAV_SCODE(0x83e)
  189. #define E_DAV_STORE_SEEK_ROWS DAV_SCODE(0x83f)
  190. #define E_DAV_STORE_BAD_CONTEXT_INFO DAV_SCODE(0x840)
  191. #define E_DAV_STORE_IFS_FILE_OPEN DAV_SCODE(0x841)
  192. #define E_DAV_STORE_IFS_FILE_WRITE DAV_SCODE(0x842)
  193. #define E_DAV_STORE_MAIL_SUBMISSION DAV_SCODE(0x843)
  194. #define E_DAV_STORE_GET_IFS_ROOT DAV_SCODE(0x844)
  195. #define E_DAV_STORE_SESSMGRERROR DAV_SCODE(0x845)
  196. #define E_DAV_STORE_TIMEOUT_WAIT_FOR_TICKET DAV_SCODE(0x846)
  197. #define E_DAV_STORE_INVALIDTICKET DAV_SCODE(0x847)
  198. #define E_DAV_STORE_RESTRICT DAV_SCODE(0x848)
  199. #define E_DAV_STORE_SORTTABLE DAV_SCODE(0x849)
  200. #define E_DAV_INVALID_TPLT_FORMAT DAV_SCODE(0x84a)
  201. #define E_DAV_INVALID_CALLBACK DAV_SCODE(0x84b)
  202. #define E_DAV_STORE_QUERYPOS DAV_SCODE(0x84c)
  203. #define E_DAV_STORE_APPLY_VIEW DAV_SCODE(0x84d)
  204. #define E_DAV_STORE_INIT_VIEW DAV_SCODE(0x84e)
  205. #define E_DAV_STORE_FIND_VIEW DAV_SCODE(0x84f)
  206. #define E_DAV_STORE_MSHL_COLUMN DAV_SCODE(0x850)
  207. #define E_DAV_STORE_ADD_COLUMN DAV_SCODE(0x851)
  208. #define E_DAV_TLHNAME_PARSE_ERROR DAV_SCODE(0x852)
  209. #define E_DAV_STORE_USE_PROXY DAV_SCODE(0x853)
  210. #define E_DAV_SEARCH_TABLE_ERROR DAV_SCODE(0x854)
  211. #define E_DAV_STORE_USER_CACHE_ERROR DAV_SCODE(0x855)
  212. #define E_DAV_MDB_DOWN DAV_SCODE(0x856)
  213. #define E_DAV_STORE_COPY_PROPS DAV_SCODE(0x857)
  214. #define E_DAV_STORE_SAVE_MSG DAV_SCODE(0x858)
  215. #define E_DAV_STORE_RECIP DAV_SCODE(0x859)
  216. #define E_DAV_STORE_NOT_VERSIONED DAV_SCODE(0x85a)
  217. #define E_DAV_STORE_GET_VERSION_HISTORY DAV_SCODE(0x85b)
  218. #define E_DAV_STORE_REVISION_ID_FAILURE DAV_SCODE(0x85c)
  219. #define E_DAV_VERSIONING_BAD_VERB DAV_SCODE(0x85d)
  220. #define E_DAV_VERSIONING_BAD_COMMENT DAV_SCODE(0x85e)
  221. #define E_DAV_VERSIONING_BAD_LOCK_DEPTH DAV_SCODE(0x85f)
  222. #define E_DAV_VERSIONING_INVALID_PARAMETER DAV_SCODE(0x860)
  223. #define E_DAV_STORE_NEED_TRAILING_SLASH DAV_SCODE(0x861)
  224. #define E_DAV_STORE_SET_FILE_HANDLE_PROP DAV_SCODE(0x862)
  225. #define E_DAV_LOCK_TIMEOUT DAV_SCODE(0x863)
  226. #define E_DAV_STORE_DELETE_FOLDER DAV_SCODE(0x864)
  227. #define E_DAV_STORE_DELETE_MESSAGES DAV_SCODE(0x865)
  228. #define E_DAV_STORE_MOVECOPY_FOLDER DAV_SCODE(0x866)
  229. #define E_DAV_STORE_MOVECOPY_MESSAGES DAV_SCODE(0x867)
  230. #define E_DAV_EPOXY_ERROR_ALREADY_SENT DAV_SCODE(0x868)
  231. #define E_DAV_UNRESOLVED_RECIP DAV_SCODE(0x869)
  232. #define E_DAV_NO_OBJECT_SELECTED DAV_SCODE(0x86a)
  233. #define E_DAV_SELECT_ONE_FOLDER DAV_SCODE(0x86b)
  234. #define E_DAV_MESSAGE_TOO_LARGE DAV_SCODE(0x86c)
  235. #define E_DAV_QUOTA_EXCEEDED DAV_SCODE(0x86d)
  236. #define E_DAV_SID_AMBIGUOUS DAV_SCODE(0x86e)
  237. #define E_DAV_GUID_AMBIGUOUS DAV_SCODE(0x86f)
  238. #define E_DAV_NO_RECIPS DAV_SCODE(0x870)
  239. #define E_DAV_ALIAS_AMBIGUOUS DAV_SCODE(0x871)
  240. #endif // _DAVSC_H_