Source code of Windows XP (NT5)
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.

321 lines
6.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992-1999.
  5. //
  6. // File: issperr.h
  7. //
  8. // Contents: Constant definitions for OLE HRESULT values.
  9. //
  10. // History: dd-mmm-yy Author Comment
  11. // 20-Sep-93 richardw genesis
  12. //
  13. // Notes:
  14. // This is a generated file. Do not modify directly.
  15. // The MC tool generates this file from dsyserr.mc
  16. //
  17. //--------------------------------------------------------------------------
  18. #ifndef _ISSPERR_H_
  19. #define _ISSPERR_H_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif
  23. // Define the status type.
  24. #ifdef FACILITY_SECURITY
  25. #undef FACILITY_SECURITY
  26. #endif
  27. #ifdef STATUS_SEVERITY_SUCCESS
  28. #undef STATUS_SEVERITY_SUCCESS
  29. #endif
  30. //#ifdef STATUS_SEVERITY_ERROR
  31. //#undef STATUS_SEVERITY_ERROR
  32. //#endif
  33. // Define the severities
  34. //
  35. // Values are 32 bit values layed out as follows:
  36. //
  37. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  38. // 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  39. // +---+-+-+-----------------------+-------------------------------+
  40. // |Sev|C|R| Facility | Code |
  41. // +---+-+-+-----------------------+-------------------------------+
  42. //
  43. // where
  44. //
  45. // Sev - is the severity code
  46. //
  47. // 00 - Success
  48. // 01 - Informational
  49. // 10 - Warning
  50. // 11 - Error
  51. //
  52. // C - is the Customer code flag
  53. //
  54. // R - is a reserved bit
  55. //
  56. // Facility - is the facility code
  57. //
  58. // Code - is the facility's status code
  59. //
  60. //
  61. // Define the facility codes
  62. //
  63. #define FACILITY_SECURITY 0x9
  64. #define FACILITY_NULL 0
  65. //
  66. // Define the severity codes
  67. //
  68. #define STATUS_SEVERITY_SUCCESS 0x0
  69. #define STATUS_SEVERITY_COERROR 0x2
  70. //
  71. // MessageId: SEC_E_INSUFFICIENT_MEMORY
  72. //
  73. // MessageText:
  74. //
  75. // Not enough memory is available to complete this request
  76. //
  77. #define SEC_E_INSUFFICIENT_MEMORY ((SECURITY_STATUS)0x1300)
  78. //
  79. // MessageId: SEC_E_INVALID_HANDLE
  80. //
  81. // MessageText:
  82. //
  83. // The handle specified is invalid
  84. //
  85. #define SEC_E_INVALID_HANDLE ((SECURITY_STATUS)0x1301)
  86. //
  87. // MessageId: SEC_E_UNSUPPORTED_FUNCTION
  88. //
  89. // MessageText:
  90. //
  91. // The function requested is not supported
  92. //
  93. #define SEC_E_UNSUPPORTED_FUNCTION ((SECURITY_STATUS)0x1302)
  94. //
  95. // MessageId: SEC_E_TARGET_UNKNOWN
  96. //
  97. // MessageText:
  98. //
  99. // The specified target is unknown or unreachable
  100. //
  101. #define SEC_E_TARGET_UNKNOWN ((SECURITY_STATUS)0x1303)
  102. //
  103. // MessageId: SEC_E_INTERNAL_ERROR
  104. //
  105. // MessageText:
  106. //
  107. // The Local Security Authority cannot be contacted
  108. //
  109. #define SEC_E_INTERNAL_ERROR ((SECURITY_STATUS)0x1304)
  110. //
  111. // MessageId: SEC_E_SECPKG_NOT_FOUND
  112. //
  113. // MessageText:
  114. //
  115. // The requested security package does not exist
  116. //
  117. #define SEC_E_SECPKG_NOT_FOUND ((SECURITY_STATUS)0x1305)
  118. //
  119. // MessageId: SEC_E_NOT_OWNER
  120. //
  121. // MessageText:
  122. //
  123. // The caller is not the owner of the desired credentials
  124. //
  125. #define SEC_E_NOT_OWNER ((SECURITY_STATUS)0x1306)
  126. //
  127. // MessageId: SEC_E_CANNOT_INSTALL
  128. //
  129. // MessageText:
  130. //
  131. // The security package failed to initialize, and cannot be installed
  132. //
  133. #define SEC_E_CANNOT_INSTALL ((SECURITY_STATUS)0x1307)
  134. //
  135. // MessageId: SEC_E_INVALID_TOKEN
  136. //
  137. // MessageText:
  138. //
  139. // The token supplied to the function is invalid
  140. //
  141. #define SEC_E_INVALID_TOKEN ((SECURITY_STATUS)0x1308)
  142. //
  143. // MessageId: SEC_E_CANNOT_PACK
  144. //
  145. // MessageText:
  146. //
  147. // The security package is not able to marshall the logon buffer,
  148. // so the logon attempt has failed
  149. //
  150. #define SEC_E_CANNOT_PACK ((SECURITY_STATUS)0x1309)
  151. //
  152. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  153. //
  154. // MessageText:
  155. //
  156. // The per-message Quality of Protection is not supported by the
  157. // security package
  158. //
  159. #define SEC_E_QOP_NOT_SUPPORTED ((SECURITY_STATUS)0x130A)
  160. //
  161. // MessageId: SEC_E_NO_IMPERSONATION
  162. //
  163. // MessageText:
  164. //
  165. // The security context does not allow impersonation of the client
  166. //
  167. #define SEC_E_NO_IMPERSONATION ((SECURITY_STATUS)0x130B)
  168. //
  169. // MessageId: SEC_E_LOGON_DENIED
  170. //
  171. // MessageText:
  172. //
  173. // The logon attempt failed
  174. //
  175. #define SEC_E_LOGON_DENIED ((SECURITY_STATUS)0x130C)
  176. //
  177. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  178. //
  179. // MessageText:
  180. //
  181. // The credentials supplied to the package were not
  182. // recognized
  183. //
  184. #define SEC_E_UNKNOWN_CREDENTIALS ((SECURITY_STATUS)0x130D)
  185. //
  186. // MessageId: SEC_E_NO_CREDENTIALS
  187. //
  188. // MessageText:
  189. //
  190. // No credentials are available in the security package
  191. //
  192. #define SEC_E_NO_CREDENTIALS ((SECURITY_STATUS)0x130E)
  193. //
  194. // MessageId: SEC_E_MESSAGE_ALTERED
  195. //
  196. // MessageText:
  197. //
  198. // The message supplied for verification has been altered
  199. //
  200. #define SEC_E_MESSAGE_ALTERED ((SECURITY_STATUS)0x130F)
  201. //
  202. // MessageId: SEC_E_OUT_OF_SEQUENCE
  203. //
  204. // MessageText:
  205. //
  206. // The message supplied for verification is out of sequence
  207. //
  208. #define SEC_E_OUT_OF_SEQUENCE ((SECURITY_STATUS)0x1310)
  209. //
  210. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  211. //
  212. // MessageText:
  213. //
  214. // No authority could be contacted for authentication.
  215. //
  216. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((SECURITY_STATUS)0x1311)
  217. // MessageId: SEC_E_CONTEXT_EXPIRED
  218. //
  219. // MessageText:
  220. //
  221. // The context has expired and can no longer be used.
  222. //
  223. #define SEC_E_CONTEXT_EXPIRED ((SECURITY_STATUS)0x1312)
  224. //
  225. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  226. //
  227. // MessageText:
  228. //
  229. // The supplied message is incomplete. The signature was not verified.
  230. //
  231. #define SEC_E_INCOMPLETE_MESSAGE ((SECURITY_STATUS)0x1313)
  232. //
  233. // MessageId: SEC_I_CONTINUE_NEEDED
  234. //
  235. // MessageText:
  236. //
  237. // The function completed successfully, but must be called
  238. // again to complete the context
  239. //
  240. #define SEC_I_CONTINUE_NEEDED ((SECURITY_STATUS)0x1012)
  241. //
  242. // MessageId: SEC_I_COMPLETE_NEEDED
  243. //
  244. // MessageText:
  245. //
  246. // The function completed successfully, but CompleteToken
  247. // must be called
  248. //
  249. #define SEC_I_COMPLETE_NEEDED ((SECURITY_STATUS)0x1013)
  250. //
  251. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  252. //
  253. // MessageText:
  254. //
  255. // The function completed successfully, but both CompleteToken
  256. // and this function must be called to complete the context
  257. //
  258. #define SEC_I_COMPLETE_AND_CONTINUE ((SECURITY_STATUS)0x1014)
  259. //
  260. // MessageId: SEC_I_LOCAL_LOGON
  261. //
  262. // MessageText:
  263. //
  264. // The logon was completed, but no network authority was
  265. // available. The logon was made using locally known information
  266. //
  267. #define SEC_I_LOCAL_LOGON ((SECURITY_STATUS)0x1015)
  268. //
  269. // MessageId: SEC_E_OK
  270. //
  271. // MessageText:
  272. //
  273. // Call completed successfully
  274. //
  275. #define SEC_E_OK ((SECURITY_STATUS)0x0000)
  276. //
  277. // Older error names for backwards compatibility
  278. //
  279. #define SEC_E_NOT_SUPPORTED SEC_E_UNSUPPORTED_FUNCTION
  280. #define SEC_E_NO_SPM SEC_E_INTERNAL_ERROR
  281. #define SEC_E_BAD_PKGID SEC_E_SECPKG_NOT_FOUND
  282. #endif // _ISSPERR_H_