home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / issperr.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  8KB  |  366 lines

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