home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / SCARDERR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  8.2 KB  |  374 lines

  1. /*
  2.  scarderr.mc
  3.  
  4.    Error message codes from the Smart Card Resource Manager
  5.    These messages must be reconciled with winerror.w
  6.  
  7.    30-Jun-97 - DBarlow Created.  */
  8. #ifndef SCARD_S_SUCCESS
  9. #pragma option push -b -a8 -pc -A- /*P_O_Push_S*/
  10. //
  11. // =============================
  12. // Facility SCARD Error Messages
  13. // =============================
  14. //
  15. #define SCARD_S_SUCCESS NO_ERROR
  16. //
  17. //  Values are 32 bit values layed out as follows:
  18. //
  19. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  20. //   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
  21. //  +---+-+-+-----------------------+-------------------------------+
  22. //  |Sev|C|R|     Facility          |               Code            |
  23. //  +---+-+-+-----------------------+-------------------------------+
  24. //
  25. //  where
  26. //
  27. //      Sev - is the severity code
  28. //
  29. //          00 - Success
  30. //          01 - Informational
  31. //          10 - Warning
  32. //          11 - Error
  33. //
  34. //      C - is the Customer code flag
  35. //
  36. //      R - is a reserved bit
  37. //
  38. //      Facility - is the facility code
  39. //
  40. //      Code - is the facility's status code
  41. //
  42. //
  43. // Define the facility codes
  44. //
  45. #define FACILITY_SYSTEM                  0x0
  46. #define FACILITY_SCARD                   0x10
  47.  
  48.  
  49. //
  50. // Define the severity codes
  51. //
  52.  
  53.  
  54. //
  55. // MessageId: SCARD_F_INTERNAL_ERROR
  56. //
  57. // MessageText:
  58. //
  59. //  An internal consistency check failed
  60. //
  61. #define SCARD_F_INTERNAL_ERROR           ((DWORD)0x80100001L)
  62.  
  63. //
  64. // MessageId: SCARD_E_CANCELLED
  65. //
  66. // MessageText:
  67. //
  68. //  The action was cancelled by an SCardCancel request
  69. //
  70. #define SCARD_E_CANCELLED                ((DWORD)0x80100002L)
  71.  
  72. //
  73. // MessageId: SCARD_E_INVALID_HANDLE
  74. //
  75. // MessageText:
  76. //
  77. //  The supplied handle was invalid
  78. //
  79. #define SCARD_E_INVALID_HANDLE           ((DWORD)0x80100003L)
  80.  
  81. //
  82. // MessageId: SCARD_E_INVALID_PARAMETER
  83. //
  84. // MessageText:
  85. //
  86. //  One or more of the supplied parameters could not be properly interpreted
  87. //
  88. #define SCARD_E_INVALID_PARAMETER        ((DWORD)0x80100004L)
  89.  
  90. //
  91. // MessageId: SCARD_E_INVALID_TARGET
  92. //
  93. // MessageText:
  94. //
  95. //  Registry startup information is missing or invalid
  96. //
  97. #define SCARD_E_INVALID_TARGET           ((DWORD)0x80100005L)
  98.  
  99. //
  100. // MessageId: SCARD_E_NO_MEMORY
  101. //
  102. // MessageText:
  103. //
  104. //  Not enough memory available to complete this command
  105. //
  106. #define SCARD_E_NO_MEMORY                ((DWORD)0x80100006L)
  107.  
  108. //
  109. // MessageId: SCARD_F_WAITED_TOO_LONG
  110. //
  111. // MessageText:
  112. //
  113. //  An internal consistency timer has expired
  114. //
  115. #define SCARD_F_WAITED_TOO_LONG          ((DWORD)0x80100007L)
  116.  
  117. //
  118. // MessageId: SCARD_E_INSUFFICIENT_BUFFER
  119. //
  120. // MessageText:
  121. //
  122. //  The data buffer to receive returned data is too small for the returned data
  123. //
  124. #define SCARD_E_INSUFFICIENT_BUFFER      ((DWORD)0x80100008L)
  125.  
  126. //
  127. // MessageId: SCARD_E_UNKNOWN_READER
  128. //
  129. // MessageText:
  130. //
  131. //  The specified reader name is not recognized
  132. //
  133. #define SCARD_E_UNKNOWN_READER           ((DWORD)0x80100009L)
  134.  
  135. //
  136. // MessageId: SCARD_E_TIMEOUT
  137. //
  138. // MessageText:
  139. //
  140. //  The user-specified timeout value has expired
  141. //
  142. #define SCARD_E_TIMEOUT                  ((DWORD)0x8010000AL)
  143.  
  144. //
  145. // MessageId: SCARD_E_SHARING_VIOLATION
  146. //
  147. // MessageText:
  148. //
  149. //  The smart card cannot be accessed because of other connections outstanding
  150. //
  151. #define SCARD_E_SHARING_VIOLATION        ((DWORD)0x8010000BL)
  152.  
  153. //
  154. // MessageId: SCARD_E_NO_SMARTCARD
  155. //
  156. // MessageText:
  157. //
  158. //  The operation requires a Smart Card, but no Smart Card is currently in the device
  159. //
  160. #define SCARD_E_NO_SMARTCARD             ((DWORD)0x8010000CL)
  161.  
  162. //
  163. // MessageId: SCARD_E_UNKNOWN_CARD
  164. //
  165. // MessageText:
  166. //
  167. //  The specified smart card name is not recognized
  168. //
  169. #define SCARD_E_UNKNOWN_CARD             ((DWORD)0x8010000DL)
  170.  
  171. //
  172. // MessageId: SCARD_E_CANT_DISPOSE
  173. //
  174. // MessageText:
  175. //
  176. //  The system could not dispose of the media in the requested manner
  177. //
  178. #define SCARD_E_CANT_DISPOSE             ((DWORD)0x8010000EL)
  179.  
  180. //
  181. // MessageId: SCARD_E_PROTO_MISMATCH
  182. //
  183. // MessageText:
  184. //
  185. //  The requested protocols are incompatible with the protocol currently in use with the smart card
  186. //
  187. #define SCARD_E_PROTO_MISMATCH           ((DWORD)0x8010000FL)
  188.  
  189. //
  190. // MessageId: SCARD_E_NOT_READY
  191. //
  192. // MessageText:
  193. //
  194. //  The reader or smart card is not ready to accept commands
  195. //
  196. #define SCARD_E_NOT_READY                ((DWORD)0x80100010L)
  197.  
  198. //
  199. // MessageId: SCARD_E_INVALID_VALUE
  200. //
  201. // MessageText:
  202. //
  203. //  One or more of the supplied parameters values could not be properly interpreted
  204. //
  205. #define SCARD_E_INVALID_VALUE            ((DWORD)0x80100011L)
  206.  
  207. //
  208. // MessageId: SCARD_E_SYSTEM_CANCELLED
  209. //
  210. // MessageText:
  211. //
  212. //  The action was cancelled by the system, presumably to log off or shut down
  213. //
  214. #define SCARD_E_SYSTEM_CANCELLED         ((DWORD)0x80100012L)
  215.  
  216. //
  217. // MessageId: SCARD_F_COMM_ERROR
  218. //
  219. // MessageText:
  220. //
  221. //  An internal communications error has been detected
  222. //
  223. #define SCARD_F_COMM_ERROR               ((DWORD)0x80100013L)
  224.  
  225. //
  226. // MessageId: SCARD_F_UNKNOWN_ERROR
  227. //
  228. // MessageText:
  229. //
  230. //  An internal error has been detected, but the source is unknown
  231. //
  232. #define SCARD_F_UNKNOWN_ERROR            ((DWORD)0x80100014L)
  233.  
  234. //
  235. // MessageId: SCARD_E_INVALID_ATR
  236. //
  237. // MessageText:
  238. //
  239. //  An ATR obtained from the registry is not a valid ATR string
  240. //
  241. #define SCARD_E_INVALID_ATR              ((DWORD)0x80100015L)
  242.  
  243. //
  244. // MessageId: SCARD_E_NOT_TRANSACTED
  245. //
  246. // MessageText:
  247. //
  248. //  An attempt was made to end a non-existent transaction
  249. //
  250. #define SCARD_E_NOT_TRANSACTED           ((DWORD)0x80100016L)
  251.  
  252. //
  253. // MessageId: SCARD_E_READER_UNAVAILABLE
  254. //
  255. // MessageText:
  256. //
  257. //  The specified reader is not currently available for use
  258. //
  259. #define SCARD_E_READER_UNAVAILABLE       ((DWORD)0x80100017L)
  260.  
  261. //
  262. // MessageId: SCARD_P_SHUTDOWN
  263. //
  264. // MessageText:
  265. //
  266. //  PRIVATE -- Internal flag to force server termination
  267. //
  268. #define SCARD_P_SHUTDOWN                 ((DWORD)0x80100018L)
  269.  
  270. //
  271. // MessageId: SCARD_E_PCI_TOO_SMALL
  272. //
  273. // MessageText:
  274. //
  275. //  The PCI Receive buffer was too small
  276. //
  277. #define SCARD_E_PCI_TOO_SMALL            ((DWORD)0x80100019L)
  278.  
  279. //
  280. // MessageId: SCARD_E_READER_UNSUPPORTED
  281. //
  282. // MessageText:
  283. //
  284. //  The reader driver does not meet minimal requirements for support
  285. //
  286. #define SCARD_E_READER_UNSUPPORTED       ((DWORD)0x8010001AL)
  287.  
  288. //
  289. // MessageId: SCARD_E_DUPLICATE_READER
  290. //
  291. // MessageText:
  292. //
  293. //  The reader driver did not produce a unique reader name
  294. //
  295. #define SCARD_E_DUPLICATE_READER         ((DWORD)0x8010001BL)
  296.  
  297. //
  298. // MessageId: SCARD_E_CARD_UNSUPPORTED
  299. //
  300. // MessageText:
  301. //
  302. //  The smart card does not meet minimal requirements for support
  303. //
  304. #define SCARD_E_CARD_UNSUPPORTED         ((DWORD)0x8010001CL)
  305.  
  306. //
  307. // MessageId: SCARD_E_NO_SERVICE
  308. //
  309. // MessageText:
  310. //
  311. //  The Smart card resource manager is not running
  312. //
  313. #define SCARD_E_NO_SERVICE               ((DWORD)0x8010001DL)
  314.  
  315. //
  316. // MessageId: SCARD_E_SERVICE_STOPPED
  317. //
  318. // MessageText:
  319. //
  320. //  The Smart card resource manager has shut down
  321. //
  322. #define SCARD_E_SERVICE_STOPPED          ((DWORD)0x8010001EL)
  323.  
  324. //
  325. // These are resettable warning codes.
  326. //
  327. //
  328. // MessageId: SCARD_W_UNSUPPORTED_CARD
  329. //
  330. // MessageText:
  331. //
  332. //  The reader cannot communicate with the smart card, due to ATR configuration conflicts
  333. //
  334. #define SCARD_W_UNSUPPORTED_CARD         ((DWORD)0x80100065L)
  335.  
  336. //
  337. // MessageId: SCARD_W_UNRESPONSIVE_CARD
  338. //
  339. // MessageText:
  340. //
  341. //  The smart card is not responding to a reset
  342. //
  343. #define SCARD_W_UNRESPONSIVE_CARD        ((DWORD)0x80100066L)
  344.  
  345. //
  346. // MessageId: SCARD_W_UNPOWERED_CARD
  347. //
  348. // MessageText:
  349. //
  350. //  Power has been removed from the smart card, so that further communication is not possible
  351. //
  352. #define SCARD_W_UNPOWERED_CARD           ((DWORD)0x80100067L)
  353.  
  354. //
  355. // MessageId: SCARD_W_RESET_CARD
  356. //
  357. // MessageText:
  358. //
  359. //  The smart card has been reset, so any shared state information is invalid
  360. //
  361. #define SCARD_W_RESET_CARD               ((DWORD)0x80100068L)
  362.  
  363. //
  364. // MessageId: SCARD_W_REMOVED_CARD
  365. //
  366. // MessageText:
  367. //
  368. //  The smart card has been removed, so that further communication is not possible
  369. //
  370. #define SCARD_W_REMOVED_CARD             ((DWORD)0x80100069L)
  371.  
  372. #pragma option pop /*P_O_Pop*/
  373. #endif // SCARD_S_SUCCESS
  374.