home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / security / winnt / include / issperr.h < prev    next >
C/C++ Source or Header  |  1997-08-24  |  8KB  |  367 lines

  1. //+-------------------------------------------------------------------------
  2. //
  3. //  Microsoft Windows
  4. //  Copyright (C) Microsoft Corporation, 1992 - 1996.
  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 private\nls\issperr.mc
  16. //
  17. //--------------------------------------------------------------------------
  18. #ifndef _ISSPERR_H_
  19. #define _ISSPERR_H_
  20. // Define the status type.
  21.  
  22. #ifdef FACILITY_SECURITY
  23. #undef FACILITY_SECURITY
  24. #endif
  25.  
  26. #ifdef STATUS_SEVERITY_SUCCESS
  27. #undef STATUS_SEVERITY_SUCCESS
  28. #endif
  29.  
  30. #ifdef STATUS_SEVERITY_COERROR
  31. #undef STATUS_SEVERITY_COERROR
  32. #endif
  33.  
  34. //
  35. // Define standard security success code
  36. //
  37.  
  38. #define SEC_E_OK                         ((HRESULT)0x00000000L)
  39.  
  40. // Define the severities
  41. //
  42. //  Values are 32 bit values layed out as follows:
  43. //
  44. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  45. //   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
  46. //  +---+-+-+-----------------------+-------------------------------+
  47. //  |Sev|C|R|     Facility          |               Code            |
  48. //  +---+-+-+-----------------------+-------------------------------+
  49. //
  50. //  where
  51. //
  52. //      Sev - is the severity code
  53. //
  54. //          00 - Success
  55. //          01 - Informational
  56. //          10 - Warning
  57. //          11 - Error
  58. //
  59. //      C - is the Customer code flag
  60. //
  61. //      R - is a reserved bit
  62. //
  63. //      Facility - is the facility code
  64. //
  65. //      Code - is the facility's status code
  66. //
  67. //
  68. // Define the facility codes
  69. //
  70. #define FACILITY_SECURITY                0x9
  71.  
  72.  
  73. //
  74. // Define the severity codes
  75. //
  76. #define STATUS_SEVERITY_SUCCESS          0x0
  77. #define STATUS_SEVERITY_COERROR          0x2
  78.  
  79.  
  80. //
  81. // MessageId: SEC_E_INSUFFICIENT_MEMORY
  82. //
  83. // MessageText:
  84. //
  85. //  Not enough memory is available to complete this request
  86. //
  87. #define SEC_E_INSUFFICIENT_MEMORY        ((HRESULT)0x80090300L)
  88.  
  89. //
  90. // MessageId: SEC_E_INVALID_HANDLE
  91. //
  92. // MessageText:
  93. //
  94. //  The handle specified is invalid
  95. //
  96. #define SEC_E_INVALID_HANDLE             ((HRESULT)0x80090301L)
  97.  
  98. //
  99. // MessageId: SEC_E_UNSUPPORTED_FUNCTION
  100. //
  101. // MessageText:
  102. //
  103. //  The function requested is not supported
  104. //
  105. #define SEC_E_UNSUPPORTED_FUNCTION       ((HRESULT)0x80090302L)
  106.  
  107. //
  108. // MessageId: SEC_E_TARGET_UNKNOWN
  109. //
  110. // MessageText:
  111. //
  112. //  The specified target is unknown or unreachable
  113. //
  114. #define SEC_E_TARGET_UNKNOWN             ((HRESULT)0x80090303L)
  115.  
  116. //
  117. // MessageId: SEC_E_INTERNAL_ERROR
  118. //
  119. // MessageText:
  120. //
  121. //  The Local Security Authority cannot be contacted
  122. //
  123. #define SEC_E_INTERNAL_ERROR             ((HRESULT)0x80090304L)
  124.  
  125. //
  126. // MessageId: SEC_E_SECPKG_NOT_FOUND
  127. //
  128. // MessageText:
  129. //
  130. //  The requested security package does not exist
  131. //
  132. #define SEC_E_SECPKG_NOT_FOUND           ((HRESULT)0x80090305L)
  133.  
  134. //
  135. // MessageId: SEC_E_NOT_OWNER
  136. //
  137. // MessageText:
  138. //
  139. //  The caller is not the owner of the desired credentials
  140. //
  141. #define SEC_E_NOT_OWNER                  ((HRESULT)0x80090306L)
  142.  
  143. //
  144. // MessageId: SEC_E_CANNOT_INSTALL
  145. //
  146. // MessageText:
  147. //
  148. //  The security package failed to initialize, and cannot be installed
  149. //
  150. #define SEC_E_CANNOT_INSTALL             ((HRESULT)0x80090307L)
  151.  
  152. //
  153. // MessageId: SEC_E_INVALID_TOKEN
  154. //
  155. // MessageText:
  156. //
  157. //  The token supplied to the function is invalid
  158. //
  159. #define SEC_E_INVALID_TOKEN              ((HRESULT)0x80090308L)
  160.  
  161. //
  162. // MessageId: SEC_E_CANNOT_PACK
  163. //
  164. // MessageText:
  165. //
  166. //  The security package is not able to marshall the logon buffer,
  167. //  so the logon attempt has failed
  168. //
  169. #define SEC_E_CANNOT_PACK                ((HRESULT)0x80090309L)
  170.  
  171. //
  172. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  173. //
  174. // MessageText:
  175. //
  176. //  The per-message Quality of Protection is not supported by the
  177. //  security package
  178. //
  179. #define SEC_E_QOP_NOT_SUPPORTED          ((HRESULT)0x8009030AL)
  180.  
  181. //
  182. // MessageId: SEC_E_NO_IMPERSONATION
  183. //
  184. // MessageText:
  185. //
  186. //  The security context does not allow impersonation of the client
  187. //
  188. #define SEC_E_NO_IMPERSONATION           ((HRESULT)0x8009030BL)
  189.  
  190. //
  191. // MessageId: SEC_E_LOGON_DENIED
  192. //
  193. // MessageText:
  194. //
  195. //  The logon attempt failed
  196. //
  197. #define SEC_E_LOGON_DENIED               ((HRESULT)0x8009030CL)
  198.  
  199. //
  200. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  201. //
  202. // MessageText:
  203. //
  204. //  The credentials supplied to the package were not
  205. //  recognized
  206. //
  207. #define SEC_E_UNKNOWN_CREDENTIALS        ((HRESULT)0x8009030DL)
  208.  
  209. //
  210. // MessageId: SEC_E_NO_CREDENTIALS
  211. //
  212. // MessageText:
  213. //
  214. //  No credentials are available in the security package
  215. //
  216. #define SEC_E_NO_CREDENTIALS             ((HRESULT)0x8009030EL)
  217.  
  218. //
  219. // MessageId: SEC_E_MESSAGE_ALTERED
  220. //
  221. // MessageText:
  222. //
  223. //  The message supplied for verification has been altered
  224. //
  225. #define SEC_E_MESSAGE_ALTERED            ((HRESULT)0x8009030FL)
  226.  
  227. //
  228. // MessageId: SEC_E_OUT_OF_SEQUENCE
  229. //
  230. // MessageText:
  231. //
  232. //  The message supplied for verification is out of sequence
  233. //
  234. #define SEC_E_OUT_OF_SEQUENCE            ((HRESULT)0x80090310L)
  235.  
  236. //
  237. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  238. //
  239. // MessageText:
  240. //
  241. //  No authority could be contacted for authentication.
  242. //
  243. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((HRESULT)0x80090311L)
  244.  
  245. //
  246. // MessageId: SEC_I_CONTINUE_NEEDED
  247. //
  248. // MessageText:
  249. //
  250. //  The function completed successfully, but must be called
  251. //  again to complete the context
  252. //
  253. #define SEC_I_CONTINUE_NEEDED            ((HRESULT)0x00090312L)
  254.  
  255. //
  256. // MessageId: SEC_I_COMPLETE_NEEDED
  257. //
  258. // MessageText:
  259. //
  260. //  The function completed successfully, but CompleteToken
  261. //  must be called
  262. //
  263. #define SEC_I_COMPLETE_NEEDED            ((HRESULT)0x00090313L)
  264.  
  265. //
  266. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  267. //
  268. // MessageText:
  269. //
  270. //  The function completed successfully, but both CompleteToken
  271. //  and this function must be called to complete the context
  272. //
  273. #define SEC_I_COMPLETE_AND_CONTINUE      ((HRESULT)0x00090314L)
  274.  
  275. //
  276. // MessageId: SEC_I_LOCAL_LOGON
  277. //
  278. // MessageText:
  279. //
  280. //  The logon was completed, but no network authority was
  281. //  available.  The logon was made using locally known information
  282. //
  283. #define SEC_I_LOCAL_LOGON                ((HRESULT)0x00090315L)
  284.  
  285. //
  286. // MessageId: SEC_E_BAD_PKGID
  287. //
  288. // MessageText:
  289. //
  290. //  The requested security package does not exist
  291. //
  292. #define SEC_E_BAD_PKGID                  ((HRESULT)0x80090316L)
  293.  
  294. //
  295. // MessageId: SEC_E_CONTEXT_EXPIRED
  296. //
  297. // MessageText:
  298. //
  299. //  The context has expired and can no longer be used.
  300. //
  301. #define SEC_E_CONTEXT_EXPIRED            ((HRESULT)0x80090317L)
  302.  
  303. //
  304. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  305. //
  306. // MessageText:
  307. //
  308. //  The supplied message is incomplete.  The signature was not verified.
  309. //
  310. #define SEC_E_INCOMPLETE_MESSAGE         ((HRESULT)0x80090318L)
  311.  
  312. //
  313. // MessageId: SEC_E_INCOMPLETE_CREDENTIALS
  314. //
  315. // MessageText:
  316. //
  317. //  The credentials supplied were not complete, and could not be verified.  The
  318. //  context could not be initialized.
  319. //
  320. #define SEC_E_INCOMPLETE_CREDENTIALS     ((HRESULT)0x80090320L)
  321.  
  322. //
  323. // MessageId: SEC_E_BUFFER_TOO_SMALL
  324. //
  325. // MessageText:
  326. //
  327. //  The buffers supplied to a function was too small.
  328. //
  329. #define SEC_E_BUFFER_TOO_SMALL           ((HRESULT)0x80090321L)
  330.  
  331. //
  332. // MessageId: SEC_I_INCOMPLETE_CREDENTIALS
  333. //
  334. // MessageText:
  335. //
  336. //  The credentials supplied were not complete, and could not be verified.
  337. //  Additional information can be returned from the context.
  338. //
  339. #define SEC_I_INCOMPLETE_CREDENTIALS     ((HRESULT)0x00090320L)
  340.  
  341. //
  342. // MessageId: SEC_I_RENEGOTIATE
  343. //
  344. // MessageText:
  345. //
  346. //  The context data must be renegotiated with the peer.
  347. //
  348. #define SEC_I_RENEGOTIATE                ((HRESULT)0x00090321L)
  349.  
  350. //
  351. // MessageId: SEC_E_WRONG_PRINCIPAL
  352. //
  353. // MessageText:
  354. //
  355. //  The context data must be renegotiated with the peer.
  356. //
  357. #define SEC_E_WRONG_PRINCIPAL            ((HRESULT)0x80090322L)
  358.  
  359. //
  360. // Provided for backwards compatibility
  361. //
  362.  
  363. #define SEC_E_NO_SPM SEC_E_INTERNAL_ERROR
  364. #define SEC_E_NOT_SUPPORTED SEC_E_UNSUPPORTED_FUNCTION
  365.  
  366. #endif // _ISSPERR_H_
  367.