home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / issper16.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  8KB  |  337 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. //     The MC tool generates this file from dsyserr.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. //#ifdef STATUS_SEVERITY_ERROR
  30. //#undef STATUS_SEVERITY_ERROR
  31. //#endif
  32.  
  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                    0x0
  65.  
  66.  
  67. //
  68. // Define the severity codes
  69. //
  70. #define STATUS_SEVERITY_SUCCESS          0x0
  71. #define STATUS_SEVERITY_COERROR          0x2
  72.  
  73.  
  74. //
  75. // MessageId: SEC_E_INSUFFICIENT_MEMORY
  76. //
  77. // MessageText:
  78. //
  79. //  Not enough memory is available to complete this request
  80. //
  81. #define SEC_E_INSUFFICIENT_MEMORY        ((SECURITY_STATUS)0x1300)
  82.  
  83. //
  84. // MessageId: SEC_E_INVALID_HANDLE
  85. //
  86. // MessageText:
  87. //
  88. //  The handle specified is invalid
  89. //
  90. #define SEC_E_INVALID_HANDLE             ((SECURITY_STATUS)0x1301)
  91.  
  92. //
  93. // MessageId: SEC_E_UNSUPPORTED_FUNCTION
  94. //
  95. // MessageText:
  96. //
  97. //  The function requested is not supported
  98. //
  99. #define SEC_E_UNSUPPORTED_FUNCTION       ((SECURITY_STATUS)0x1302)
  100.  
  101. // This is for backwards compatibility
  102. //
  103. // MessageId: SEC_E_NOT_SUPPORTED
  104. //
  105. // MessageText:
  106. //
  107. //  The function requested is not supported
  108. //
  109. #define SEC_E_NOT_SUPPORTED              ((SECURITY_STATUS)0x1302)
  110.  
  111. //
  112. // MessageId: SEC_E_TARGET_UNKNOWN
  113. //
  114. // MessageText:
  115. //
  116. //  The specified target is unknown or unreachable
  117. //
  118. #define SEC_E_TARGET_UNKNOWN             ((SECURITY_STATUS)0x1303)
  119.  
  120. //
  121. // MessageId: SEC_E_INTERNAL_ERROR
  122. //
  123. // MessageText:
  124. //
  125. //  The Local Security Authority cannot be contacted
  126. //
  127. #define SEC_E_INTERNAL_ERROR             ((SECURITY_STATUS)0x1304)
  128.  
  129. // for backwards compatibility
  130. //
  131. // MessageId: SEC_E_NO_SPM
  132. //
  133. // MessageText:
  134. //
  135. //  The Local Security Authority cannot be contacted
  136. //
  137. #define SEC_E_NO_SPM                     ((SECURITY_STATUS)0x1304)
  138.  
  139. //
  140. // MessageId: SEC_E_SECPKG_NOT_FOUND
  141. //
  142. // MessageText:
  143. //
  144. //  The requested security package does not exist
  145. //
  146. #define SEC_E_SECPKG_NOT_FOUND           ((SECURITY_STATUS)0x1305)
  147.  
  148. // for backwards compatibility
  149. //
  150. // MessageId: SEC_E_BAD_PKGID
  151. //
  152. // MessageText:
  153. //
  154. //  The requested security package does not exist
  155. //
  156. #define SEC_E_BAD_PKGID                  ((SECURITY_STATUS)0x1305)
  157.  
  158. //
  159. // MessageId: SEC_E_NOT_OWNER
  160. //
  161. // MessageText:
  162. //
  163. //  The caller is not the owner of the desired credentials
  164. //
  165. #define SEC_E_NOT_OWNER                  ((SECURITY_STATUS)0x1306)
  166.  
  167. //
  168. // MessageId: SEC_E_CANNOT_INSTALL
  169. //
  170. // MessageText:
  171. //
  172. //  The security package failed to initialize, and cannot be installed
  173. //
  174. #define SEC_E_CANNOT_INSTALL             ((SECURITY_STATUS)0x1307)
  175.  
  176. //
  177. // MessageId: SEC_E_INVALID_TOKEN
  178. //
  179. // MessageText:
  180. //
  181. //  The token supplied to the function is invalid
  182. //
  183. #define SEC_E_INVALID_TOKEN              ((SECURITY_STATUS)0x1308)
  184.  
  185. //
  186. // MessageId: SEC_E_CANNOT_PACK
  187. //
  188. // MessageText:
  189. //
  190. //  The security package is not able to marshall the logon buffer,
  191. //  so the logon attempt has failed
  192. //
  193. #define SEC_E_CANNOT_PACK                ((SECURITY_STATUS)0x1309)
  194.  
  195. //
  196. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  197. //
  198. // MessageText:
  199. //
  200. //  The per-message Quality of Protection is not supported by the
  201. //  security package
  202. //
  203. #define SEC_E_QOP_NOT_SUPPORTED          ((SECURITY_STATUS)0x130A)
  204.  
  205. //
  206. // MessageId: SEC_E_NO_IMPERSONATION
  207. //
  208. // MessageText:
  209. //
  210. //  The security context does not allow impersonation of the client
  211. //
  212. #define SEC_E_NO_IMPERSONATION           ((SECURITY_STATUS)0x130B)
  213.  
  214. //
  215. // MessageId: SEC_E_LOGON_DENIED
  216. //
  217. // MessageText:
  218. //
  219. //  The logon attempt failed
  220. //
  221. #define SEC_E_LOGON_DENIED               ((SECURITY_STATUS)0x130C)
  222.  
  223. //
  224. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  225. //
  226. // MessageText:
  227. //
  228. //  The credentials supplied to the package were not
  229. //  recognized
  230. //
  231. #define SEC_E_UNKNOWN_CREDENTIALS        ((SECURITY_STATUS)0x130D)
  232.  
  233. //
  234. // MessageId: SEC_E_NO_CREDENTIALS
  235. //
  236. // MessageText:
  237. //
  238. //  No credentials are available in the security package
  239. //
  240. #define SEC_E_NO_CREDENTIALS             ((SECURITY_STATUS)0x130E)
  241.  
  242. //
  243. // MessageId: SEC_E_MESSAGE_ALTERED
  244. //
  245. // MessageText:
  246. //
  247. //  The message supplied for verification has been altered
  248. //
  249. #define SEC_E_MESSAGE_ALTERED            ((SECURITY_STATUS)0x130F)
  250.  
  251. //
  252. // MessageId: SEC_E_OUT_OF_SEQUENCE
  253. //
  254. // MessageText:
  255. //
  256. //  The message supplied for verification is out of sequence
  257. //
  258. #define SEC_E_OUT_OF_SEQUENCE            ((SECURITY_STATUS)0x1310)
  259.  
  260. //
  261. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  262. //
  263. // MessageText:
  264. //
  265. //  No authority could be contacted for authentication.
  266. //
  267. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((SECURITY_STATUS)0x1311)
  268.  
  269. // MessageId: SEC_E_CONTEXT_EXPIRED
  270. //
  271. // MessageText:
  272. //
  273. //  The context has expired and can no longer be used.
  274. //
  275. #define SEC_E_CONTEXT_EXPIRED            ((SECURITY_STATUS)0x1312)
  276.  
  277. //
  278. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  279. //
  280. // MessageText:
  281. //
  282. //  The supplied message is incomplete.  The signature was not verified.
  283. //
  284. #define SEC_E_INCOMPLETE_MESSAGE         ((SECURITY_STATUS)0x1313)
  285.  
  286. //
  287. // MessageId: SEC_I_CONTINUE_NEEDED
  288. //
  289. // MessageText:
  290. //
  291. //  The function completed successfully, but must be called
  292. //  again to complete the context
  293. //
  294. #define SEC_I_CONTINUE_NEEDED            ((SECURITY_STATUS)0x1012)
  295.  
  296. //
  297. // MessageId: SEC_I_COMPLETE_NEEDED
  298. //
  299. // MessageText:
  300. //
  301. //  The function completed successfully, but CompleteToken
  302. //  must be called
  303. //
  304. #define SEC_I_COMPLETE_NEEDED            ((SECURITY_STATUS)0x1013)
  305.  
  306. //
  307. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  308. //
  309. // MessageText:
  310. //
  311. //  The function completed successfully, but both CompleteToken
  312. //  and this function must be called to complete the context
  313. //
  314. #define SEC_I_COMPLETE_AND_CONTINUE      ((SECURITY_STATUS)0x1014)
  315.  
  316. //
  317. // MessageId: SEC_I_LOCAL_LOGON
  318. //
  319. // MessageText:
  320. //
  321. //  The logon was completed, but no network authority was
  322. //  available.  The logon was made using locally known information
  323. //
  324. #define SEC_I_LOCAL_LOGON                ((SECURITY_STATUS)0x1015)
  325.  
  326. // This is for backwards compatibility
  327. //
  328. // MessageId: SEC_E_OK
  329. //
  330. // MessageText:
  331. //
  332. //  Call completed successfully
  333. //
  334. #define SEC_E_OK                         ((SECURITY_STATUS)0x0000)
  335.  
  336. #endif // _ISSPERR_H_
  337.