home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / ISSPER16.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  7.7 KB  |  339 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. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  20. #define _ISSPERR_H_
  21. // Define the status type.
  22.  
  23. #ifdef FACILITY_SECURITY
  24. #undef FACILITY_SECURITY
  25. #endif
  26.  
  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.  
  34. // Define the severities
  35. //
  36. //  Values are 32 bit values layed out as follows:
  37. //
  38. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  39. //   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
  40. //  +---+-+-+-----------------------+-------------------------------+
  41. //  |Sev|C|R|     Facility          |               Code            |
  42. //  +---+-+-+-----------------------+-------------------------------+
  43. //
  44. //  where
  45. //
  46. //      Sev - is the severity code
  47. //
  48. //          00 - Success
  49. //          01 - Informational
  50. //          10 - Warning
  51. //          11 - Error
  52. //
  53. //      C - is the Customer code flag
  54. //
  55. //      R - is a reserved bit
  56. //
  57. //      Facility - is the facility code
  58. //
  59. //      Code - is the facility's status code
  60. //
  61. //
  62. // Define the facility codes
  63. //
  64. #define FACILITY_SECURITY                0x9
  65. #define FACILITY_NULL                    0x0
  66.  
  67.  
  68. //
  69. // Define the severity codes
  70. //
  71. #define STATUS_SEVERITY_SUCCESS          0x0
  72. #define STATUS_SEVERITY_COERROR          0x2
  73.  
  74.  
  75. //
  76. // MessageId: SEC_E_INSUFFICIENT_MEMORY
  77. //
  78. // MessageText:
  79. //
  80. //  Not enough memory is available to complete this request
  81. //
  82. #define SEC_E_INSUFFICIENT_MEMORY        ((SECURITY_STATUS)0x1300)
  83.  
  84. //
  85. // MessageId: SEC_E_INVALID_HANDLE
  86. //
  87. // MessageText:
  88. //
  89. //  The handle specified is invalid
  90. //
  91. #define SEC_E_INVALID_HANDLE             ((SECURITY_STATUS)0x1301)
  92.  
  93. //
  94. // MessageId: SEC_E_UNSUPPORTED_FUNCTION
  95. //
  96. // MessageText:
  97. //
  98. //  The function requested is not supported
  99. //
  100. #define SEC_E_UNSUPPORTED_FUNCTION       ((SECURITY_STATUS)0x1302)
  101.  
  102. // This is for backwards compatibility
  103. //
  104. // MessageId: SEC_E_NOT_SUPPORTED
  105. //
  106. // MessageText:
  107. //
  108. //  The function requested is not supported
  109. //
  110. #define SEC_E_NOT_SUPPORTED              ((SECURITY_STATUS)0x1302)
  111.  
  112. //
  113. // MessageId: SEC_E_TARGET_UNKNOWN
  114. //
  115. // MessageText:
  116. //
  117. //  The specified target is unknown or unreachable
  118. //
  119. #define SEC_E_TARGET_UNKNOWN             ((SECURITY_STATUS)0x1303)
  120.  
  121. //
  122. // MessageId: SEC_E_INTERNAL_ERROR
  123. //
  124. // MessageText:
  125. //
  126. //  The Local Security Authority cannot be contacted
  127. //
  128. #define SEC_E_INTERNAL_ERROR             ((SECURITY_STATUS)0x1304)
  129.  
  130. // for backwards compatibility
  131. //
  132. // MessageId: SEC_E_NO_SPM
  133. //
  134. // MessageText:
  135. //
  136. //  The Local Security Authority cannot be contacted
  137. //
  138. #define SEC_E_NO_SPM                     ((SECURITY_STATUS)0x1304)
  139.  
  140. //
  141. // MessageId: SEC_E_SECPKG_NOT_FOUND
  142. //
  143. // MessageText:
  144. //
  145. //  The requested security package does not exist
  146. //
  147. #define SEC_E_SECPKG_NOT_FOUND           ((SECURITY_STATUS)0x1305)
  148.  
  149. // for backwards compatibility
  150. //
  151. // MessageId: SEC_E_BAD_PKGID
  152. //
  153. // MessageText:
  154. //
  155. //  The requested security package does not exist
  156. //
  157. #define SEC_E_BAD_PKGID                  ((SECURITY_STATUS)0x1305)
  158.  
  159. //
  160. // MessageId: SEC_E_NOT_OWNER
  161. //
  162. // MessageText:
  163. //
  164. //  The caller is not the owner of the desired credentials
  165. //
  166. #define SEC_E_NOT_OWNER                  ((SECURITY_STATUS)0x1306)
  167.  
  168. //
  169. // MessageId: SEC_E_CANNOT_INSTALL
  170. //
  171. // MessageText:
  172. //
  173. //  The security package failed to initialize, and cannot be installed
  174. //
  175. #define SEC_E_CANNOT_INSTALL             ((SECURITY_STATUS)0x1307)
  176.  
  177. //
  178. // MessageId: SEC_E_INVALID_TOKEN
  179. //
  180. // MessageText:
  181. //
  182. //  The token supplied to the function is invalid
  183. //
  184. #define SEC_E_INVALID_TOKEN              ((SECURITY_STATUS)0x1308)
  185.  
  186. //
  187. // MessageId: SEC_E_CANNOT_PACK
  188. //
  189. // MessageText:
  190. //
  191. //  The security package is not able to marshall the logon buffer,
  192. //  so the logon attempt has failed
  193. //
  194. #define SEC_E_CANNOT_PACK                ((SECURITY_STATUS)0x1309)
  195.  
  196. //
  197. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  198. //
  199. // MessageText:
  200. //
  201. //  The per-message Quality of Protection is not supported by the
  202. //  security package
  203. //
  204. #define SEC_E_QOP_NOT_SUPPORTED          ((SECURITY_STATUS)0x130A)
  205.  
  206. //
  207. // MessageId: SEC_E_NO_IMPERSONATION
  208. //
  209. // MessageText:
  210. //
  211. //  The security context does not allow impersonation of the client
  212. //
  213. #define SEC_E_NO_IMPERSONATION           ((SECURITY_STATUS)0x130B)
  214.  
  215. //
  216. // MessageId: SEC_E_LOGON_DENIED
  217. //
  218. // MessageText:
  219. //
  220. //  The logon attempt failed
  221. //
  222. #define SEC_E_LOGON_DENIED               ((SECURITY_STATUS)0x130C)
  223.  
  224. //
  225. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  226. //
  227. // MessageText:
  228. //
  229. //  The credentials supplied to the package were not
  230. //  recognized
  231. //
  232. #define SEC_E_UNKNOWN_CREDENTIALS        ((SECURITY_STATUS)0x130D)
  233.  
  234. //
  235. // MessageId: SEC_E_NO_CREDENTIALS
  236. //
  237. // MessageText:
  238. //
  239. //  No credentials are available in the security package
  240. //
  241. #define SEC_E_NO_CREDENTIALS             ((SECURITY_STATUS)0x130E)
  242.  
  243. //
  244. // MessageId: SEC_E_MESSAGE_ALTERED
  245. //
  246. // MessageText:
  247. //
  248. //  The message supplied for verification has been altered
  249. //
  250. #define SEC_E_MESSAGE_ALTERED            ((SECURITY_STATUS)0x130F)
  251.  
  252. //
  253. // MessageId: SEC_E_OUT_OF_SEQUENCE
  254. //
  255. // MessageText:
  256. //
  257. //  The message supplied for verification is out of sequence
  258. //
  259. #define SEC_E_OUT_OF_SEQUENCE            ((SECURITY_STATUS)0x1310)
  260.  
  261. //
  262. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  263. //
  264. // MessageText:
  265. //
  266. //  No authority could be contacted for authentication.
  267. //
  268. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((SECURITY_STATUS)0x1311)
  269.  
  270. // MessageId: SEC_E_CONTEXT_EXPIRED
  271. //
  272. // MessageText:
  273. //
  274. //  The context has expired and can no longer be used.
  275. //
  276. #define SEC_E_CONTEXT_EXPIRED            ((SECURITY_STATUS)0x1312)
  277.  
  278. //
  279. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  280. //
  281. // MessageText:
  282. //
  283. //  The supplied message is incomplete.  The signature was not verified.
  284. //
  285. #define SEC_E_INCOMPLETE_MESSAGE         ((SECURITY_STATUS)0x1313)
  286.  
  287. //
  288. // MessageId: SEC_I_CONTINUE_NEEDED
  289. //
  290. // MessageText:
  291. //
  292. //  The function completed successfully, but must be called
  293. //  again to complete the context
  294. //
  295. #define SEC_I_CONTINUE_NEEDED            ((SECURITY_STATUS)0x1012)
  296.  
  297. //
  298. // MessageId: SEC_I_COMPLETE_NEEDED
  299. //
  300. // MessageText:
  301. //
  302. //  The function completed successfully, but CompleteToken
  303. //  must be called
  304. //
  305. #define SEC_I_COMPLETE_NEEDED            ((SECURITY_STATUS)0x1013)
  306.  
  307. //
  308. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  309. //
  310. // MessageText:
  311. //
  312. //  The function completed successfully, but both CompleteToken
  313. //  and this function must be called to complete the context
  314. //
  315. #define SEC_I_COMPLETE_AND_CONTINUE      ((SECURITY_STATUS)0x1014)
  316.  
  317. //
  318. // MessageId: SEC_I_LOCAL_LOGON
  319. //
  320. // MessageText:
  321. //
  322. //  The logon was completed, but no network authority was
  323. //  available.  The logon was made using locally known information
  324. //
  325. #define SEC_I_LOCAL_LOGON                ((SECURITY_STATUS)0x1015)
  326.  
  327. // This is for backwards compatibility
  328. //
  329. // MessageId: SEC_E_OK
  330. //
  331. // MessageText:
  332. //
  333. //  Call completed successfully
  334. //
  335. #define SEC_E_OK                         ((SECURITY_STATUS)0x0000)
  336.  
  337. #pragma option pop /*P_O_Pop*/
  338. #endif // _ISSPERR_H_
  339.