home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / issper16.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  7.3 KB  |  324 lines

  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. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  20. #define _ISSPERR_H_
  21. #if _MSC_VER > 1000
  22. #pragma once
  23. #endif
  24.  
  25. // Define the status type.
  26.  
  27. #ifdef FACILITY_SECURITY
  28. #undef FACILITY_SECURITY
  29. #endif
  30.  
  31. #ifdef STATUS_SEVERITY_SUCCESS
  32. #undef STATUS_SEVERITY_SUCCESS
  33. #endif
  34. //#ifdef STATUS_SEVERITY_ERROR
  35. //#undef STATUS_SEVERITY_ERROR
  36. //#endif
  37.  
  38. // Define the severities
  39. //
  40. //  Values are 32 bit values layed out as follows:
  41. //
  42. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  43. //   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
  44. //  +---+-+-+-----------------------+-------------------------------+
  45. //  |Sev|C|R|     Facility          |               Code            |
  46. //  +---+-+-+-----------------------+-------------------------------+
  47. //
  48. //  where
  49. //
  50. //      Sev - is the severity code
  51. //
  52. //          00 - Success
  53. //          01 - Informational
  54. //          10 - Warning
  55. //          11 - Error
  56. //
  57. //      C - is the Customer code flag
  58. //
  59. //      R - is a reserved bit
  60. //
  61. //      Facility - is the facility code
  62. //
  63. //      Code - is the facility's status code
  64. //
  65. //
  66. // Define the facility codes
  67. //
  68. #define FACILITY_SECURITY                0x9
  69. #define FACILITY_NULL                    0
  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        ((SECURITY_STATUS)0x1300)
  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             ((SECURITY_STATUS)0x1301)
  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       ((SECURITY_STATUS)0x1302)
  105.  
  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             ((SECURITY_STATUS)0x1303)
  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             ((SECURITY_STATUS)0x1304)
  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           ((SECURITY_STATUS)0x1305)
  133.  
  134.  
  135. //
  136. // MessageId: SEC_E_NOT_OWNER
  137. //
  138. // MessageText:
  139. //
  140. //  The caller is not the owner of the desired credentials
  141. //
  142. #define SEC_E_NOT_OWNER                  ((SECURITY_STATUS)0x1306)
  143.  
  144. //
  145. // MessageId: SEC_E_CANNOT_INSTALL
  146. //
  147. // MessageText:
  148. //
  149. //  The security package failed to initialize, and cannot be installed
  150. //
  151. #define SEC_E_CANNOT_INSTALL             ((SECURITY_STATUS)0x1307)
  152.  
  153. //
  154. // MessageId: SEC_E_INVALID_TOKEN
  155. //
  156. // MessageText:
  157. //
  158. //  The token supplied to the function is invalid
  159. //
  160. #define SEC_E_INVALID_TOKEN              ((SECURITY_STATUS)0x1308)
  161.  
  162. //
  163. // MessageId: SEC_E_CANNOT_PACK
  164. //
  165. // MessageText:
  166. //
  167. //  The security package is not able to marshall the logon buffer,
  168. //  so the logon attempt has failed
  169. //
  170. #define SEC_E_CANNOT_PACK                ((SECURITY_STATUS)0x1309)
  171.  
  172. //
  173. // MessageId: SEC_E_QOP_NOT_SUPPORTED
  174. //
  175. // MessageText:
  176. //
  177. //  The per-message Quality of Protection is not supported by the
  178. //  security package
  179. //
  180. #define SEC_E_QOP_NOT_SUPPORTED          ((SECURITY_STATUS)0x130A)
  181.  
  182. //
  183. // MessageId: SEC_E_NO_IMPERSONATION
  184. //
  185. // MessageText:
  186. //
  187. //  The security context does not allow impersonation of the client
  188. //
  189. #define SEC_E_NO_IMPERSONATION           ((SECURITY_STATUS)0x130B)
  190.  
  191. //
  192. // MessageId: SEC_E_LOGON_DENIED
  193. //
  194. // MessageText:
  195. //
  196. //  The logon attempt failed
  197. //
  198. #define SEC_E_LOGON_DENIED               ((SECURITY_STATUS)0x130C)
  199.  
  200. //
  201. // MessageId: SEC_E_UNKNOWN_CREDENTIALS
  202. //
  203. // MessageText:
  204. //
  205. //  The credentials supplied to the package were not
  206. //  recognized
  207. //
  208. #define SEC_E_UNKNOWN_CREDENTIALS        ((SECURITY_STATUS)0x130D)
  209.  
  210. //
  211. // MessageId: SEC_E_NO_CREDENTIALS
  212. //
  213. // MessageText:
  214. //
  215. //  No credentials are available in the security package
  216. //
  217. #define SEC_E_NO_CREDENTIALS             ((SECURITY_STATUS)0x130E)
  218.  
  219. //
  220. // MessageId: SEC_E_MESSAGE_ALTERED
  221. //
  222. // MessageText:
  223. //
  224. //  The message supplied for verification has been altered
  225. //
  226. #define SEC_E_MESSAGE_ALTERED            ((SECURITY_STATUS)0x130F)
  227.  
  228. //
  229. // MessageId: SEC_E_OUT_OF_SEQUENCE
  230. //
  231. // MessageText:
  232. //
  233. //  The message supplied for verification is out of sequence
  234. //
  235. #define SEC_E_OUT_OF_SEQUENCE            ((SECURITY_STATUS)0x1310)
  236.  
  237. //
  238. // MessageId: SEC_E_NO_AUTHENTICATING_AUTHORITY
  239. //
  240. // MessageText:
  241. //
  242. //  No authority could be contacted for authentication.
  243. //
  244. #define SEC_E_NO_AUTHENTICATING_AUTHORITY ((SECURITY_STATUS)0x1311)
  245.  
  246. // MessageId: SEC_E_CONTEXT_EXPIRED
  247. //
  248. // MessageText:
  249. //
  250. //  The context has expired and can no longer be used.
  251. //
  252. #define SEC_E_CONTEXT_EXPIRED            ((SECURITY_STATUS)0x1312)
  253.  
  254. //
  255. // MessageId: SEC_E_INCOMPLETE_MESSAGE
  256. //
  257. // MessageText:
  258. //
  259. //  The supplied message is incomplete.  The signature was not verified.
  260. //
  261. #define SEC_E_INCOMPLETE_MESSAGE         ((SECURITY_STATUS)0x1313)
  262.  
  263. //
  264. // MessageId: SEC_I_CONTINUE_NEEDED
  265. //
  266. // MessageText:
  267. //
  268. //  The function completed successfully, but must be called
  269. //  again to complete the context
  270. //
  271. #define SEC_I_CONTINUE_NEEDED            ((SECURITY_STATUS)0x1012)
  272.  
  273. //
  274. // MessageId: SEC_I_COMPLETE_NEEDED
  275. //
  276. // MessageText:
  277. //
  278. //  The function completed successfully, but CompleteToken
  279. //  must be called
  280. //
  281. #define SEC_I_COMPLETE_NEEDED            ((SECURITY_STATUS)0x1013)
  282.  
  283. //
  284. // MessageId: SEC_I_COMPLETE_AND_CONTINUE
  285. //
  286. // MessageText:
  287. //
  288. //  The function completed successfully, but both CompleteToken
  289. //  and this function must be called to complete the context
  290. //
  291. #define SEC_I_COMPLETE_AND_CONTINUE      ((SECURITY_STATUS)0x1014)
  292.  
  293. //
  294. // MessageId: SEC_I_LOCAL_LOGON
  295. //
  296. // MessageText:
  297. //
  298. //  The logon was completed, but no network authority was
  299. //  available.  The logon was made using locally known information
  300. //
  301. #define SEC_I_LOCAL_LOGON                ((SECURITY_STATUS)0x1015)
  302.  
  303. //
  304. // MessageId: SEC_E_OK
  305. //
  306. // MessageText:
  307. //
  308. //  Call completed successfully
  309. //
  310. #define SEC_E_OK                         ((SECURITY_STATUS)0x0000)
  311.  
  312. //
  313. // Older error names for backwards compatibility
  314. //
  315.  
  316.  
  317. #define SEC_E_NOT_SUPPORTED              SEC_E_UNSUPPORTED_FUNCTION
  318. #define SEC_E_NO_SPM                     SEC_E_INTERNAL_ERROR
  319. #define SEC_E_BAD_PKGID                  SEC_E_SECPKG_NOT_FOUND
  320.  
  321.  
  322. #pragma option pop /*P_O_Pop*/
  323. #endif // _ISSPERR_H_
  324.