Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

511 lines
10 KiB

  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. ; They exist here to provide error messages on pre-Win2K systems.
  7. ;
  8. ;*/
  9. MessageIdTypedef=DWORD
  10. SeverityNames=(Success=0x0
  11. CoError=0x2
  12. Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
  13. Warning=0x2:STATUS_SEVERITY_WARNING
  14. Error=0x3:STATUS_SEVERITY_ERROR
  15. )
  16. FacilityNames=(System=0x00:FACILITY_SYSTEM
  17. SmartCard=0x10:FACILITY_SCARD
  18. )
  19. ;#ifndef SCARD_S_SUCCESS
  20. ;//
  21. ;// =============================
  22. ;// Facility SCARD Error Messages
  23. ;// =============================
  24. ;//
  25. ;#define SCARD_S_SUCCESS NO_ERROR
  26. MessageId=1
  27. SymbolicName=SCARD_F_INTERNAL_ERROR
  28. Severity=CoError
  29. Facility=SmartCard
  30. Language=English
  31. An internal consistency check failed.
  32. .
  33. MessageId=2
  34. SymbolicName=SCARD_E_CANCELLED
  35. Severity=CoError
  36. Facility=SmartCard
  37. Language=English
  38. The action was cancelled by an SCardCancel request.
  39. .
  40. MessageId=3
  41. SymbolicName=SCARD_E_INVALID_HANDLE
  42. Severity=CoError
  43. Facility=SmartCard
  44. Language=English
  45. The supplied handle was invalid.
  46. .
  47. MessageId=4
  48. SymbolicName=SCARD_E_INVALID_PARAMETER
  49. Severity=CoError
  50. Facility=SmartCard
  51. Language=English
  52. One or more of the supplied parameters could not be properly interpreted.
  53. .
  54. MessageId=5
  55. SymbolicName=SCARD_E_INVALID_TARGET
  56. Severity=CoError
  57. Facility=SmartCard
  58. Language=English
  59. Registry startup information is missing or invalid.
  60. .
  61. MessageId=6
  62. SymbolicName=SCARD_E_NO_MEMORY
  63. Severity=CoError
  64. Facility=SmartCard
  65. Language=English
  66. Not enough memory available to complete this command.
  67. .
  68. MessageId=7
  69. SymbolicName=SCARD_F_WAITED_TOO_LONG
  70. Severity=CoError
  71. Facility=SmartCard
  72. Language=English
  73. An internal consistency timer has expired.
  74. .
  75. MessageId=8
  76. SymbolicName=SCARD_E_INSUFFICIENT_BUFFER
  77. Severity=CoError
  78. Facility=SmartCard
  79. Language=English
  80. The data buffer to receive returned data is too small for the returned data.
  81. .
  82. MessageId=9
  83. SymbolicName=SCARD_E_UNKNOWN_READER
  84. Severity=CoError
  85. Facility=SmartCard
  86. Language=English
  87. The specified reader name is not recognized.
  88. .
  89. MessageId=10
  90. SymbolicName=SCARD_E_TIMEOUT
  91. Severity=CoError
  92. Facility=SmartCard
  93. Language=English
  94. The user-specified timeout value has expired.
  95. .
  96. MessageId=11
  97. SymbolicName=SCARD_E_SHARING_VIOLATION
  98. Severity=CoError
  99. Facility=SmartCard
  100. Language=English
  101. The smart card cannot be accessed because of other connections outstanding.
  102. .
  103. MessageId=12
  104. SymbolicName=SCARD_E_NO_SMARTCARD
  105. Severity=CoError
  106. Facility=SmartCard
  107. Language=English
  108. The operation requires a Smart Card, but no Smart Card is currently in the device.
  109. .
  110. MessageId=13
  111. SymbolicName=SCARD_E_UNKNOWN_CARD
  112. Severity=CoError
  113. Facility=SmartCard
  114. Language=English
  115. The specified smart card name is not recognized.
  116. .
  117. MessageId=14
  118. SymbolicName=SCARD_E_CANT_DISPOSE
  119. Severity=CoError
  120. Facility=SmartCard
  121. Language=English
  122. The system could not dispose of the media in the requested manner.
  123. .
  124. MessageId=15
  125. SymbolicName=SCARD_E_PROTO_MISMATCH
  126. Severity=CoError
  127. Facility=SmartCard
  128. Language=English
  129. The requested protocols are incompatible with the protocol currently in use with the smart card.
  130. .
  131. MessageId=16
  132. SymbolicName=SCARD_E_NOT_READY
  133. Severity=CoError
  134. Facility=SmartCard
  135. Language=English
  136. The reader or smart card is not ready to accept commands.
  137. .
  138. MessageId=17
  139. SymbolicName=SCARD_E_INVALID_VALUE
  140. Severity=CoError
  141. Facility=SmartCard
  142. Language=English
  143. One or more of the supplied parameters values could not be properly interpreted.
  144. .
  145. MessageId=18
  146. SymbolicName=SCARD_E_SYSTEM_CANCELLED
  147. Severity=CoError
  148. Facility=SmartCard
  149. Language=English
  150. The action was cancelled by the system, presumably to log off or shut down.
  151. .
  152. MessageId=19
  153. SymbolicName=SCARD_F_COMM_ERROR
  154. Severity=CoError
  155. Facility=SmartCard
  156. Language=English
  157. An internal communications error has been detected.
  158. .
  159. MessageId=20
  160. SymbolicName=SCARD_F_UNKNOWN_ERROR
  161. Severity=CoError
  162. Facility=SmartCard
  163. Language=English
  164. An internal error has been detected, but the source is unknown.
  165. .
  166. MessageId=21
  167. SymbolicName=SCARD_E_INVALID_ATR
  168. Severity=CoError
  169. Facility=SmartCard
  170. Language=English
  171. An ATR obtained from the registry is not a valid ATR string.
  172. .
  173. MessageId=22
  174. SymbolicName=SCARD_E_NOT_TRANSACTED
  175. Severity=CoError
  176. Facility=SmartCard
  177. Language=English
  178. An attempt was made to end a non-existent transaction.
  179. .
  180. MessageId=23
  181. SymbolicName=SCARD_E_READER_UNAVAILABLE
  182. Severity=CoError
  183. Facility=SmartCard
  184. Language=English
  185. The specified reader is not currently available for use.
  186. .
  187. MessageId=24
  188. SymbolicName=SCARD_P_SHUTDOWN
  189. Severity=CoError
  190. Facility=SmartCard
  191. Language=English
  192. The operation has been aborted to allow the server application to exit.
  193. .
  194. MessageId=25
  195. SymbolicName=SCARD_E_PCI_TOO_SMALL
  196. Severity=CoError
  197. Facility=SmartCard
  198. Language=English
  199. The PCI Receive buffer was too small.
  200. .
  201. MessageId=26
  202. SymbolicName=SCARD_E_READER_UNSUPPORTED
  203. Severity=CoError
  204. Facility=SmartCard
  205. Language=English
  206. The reader driver does not meet minimal requirements for support.
  207. .
  208. MessageId=27
  209. SymbolicName=SCARD_E_DUPLICATE_READER
  210. Severity=CoError
  211. Facility=SmartCard
  212. Language=English
  213. The reader driver did not produce a unique reader name.
  214. .
  215. MessageId=28
  216. SymbolicName=SCARD_E_CARD_UNSUPPORTED
  217. Severity=CoError
  218. Facility=SmartCard
  219. Language=English
  220. The smart card does not meet minimal requirements for support.
  221. .
  222. MessageId=29
  223. SymbolicName=SCARD_E_NO_SERVICE
  224. Severity=CoError
  225. Facility=SmartCard
  226. Language=English
  227. The Smart card resource manager is not running.
  228. .
  229. MessageId=30
  230. SymbolicName=SCARD_E_SERVICE_STOPPED
  231. Severity=CoError
  232. Facility=SmartCard
  233. Language=English
  234. The Smart card resource manager has shut down.
  235. .
  236. MessageId=31
  237. SymbolicName=SCARD_E_UNEXPECTED
  238. Severity=CoError
  239. Facility=SmartCard
  240. Language=English
  241. An unexpected card error has occurred.
  242. .
  243. MessageId=32
  244. SymbolicName=SCARD_E_ICC_INSTALLATION
  245. Severity=CoError
  246. Facility=SmartCard
  247. Language=English
  248. No Primary Provider can be found for the smart card.
  249. .
  250. MessageId=33
  251. SymbolicName=SCARD_E_ICC_CREATEORDER
  252. Severity=CoError
  253. Facility=SmartCard
  254. Language=English
  255. The requested order of object creation is not supported.
  256. .
  257. MessageId=34
  258. SymbolicName=SCARD_E_UNSUPPORTED_FEATURE
  259. Severity=CoError
  260. Facility=SmartCard
  261. Language=English
  262. This smart card does not support the requested feature.
  263. .
  264. MessageId=35
  265. SymbolicName=SCARD_E_DIR_NOT_FOUND
  266. Severity=CoError
  267. Facility=SmartCard
  268. Language=English
  269. The identified directory does not exist in the smart card.
  270. .
  271. MessageId=36
  272. SymbolicName=SCARD_E_FILE_NOT_FOUND
  273. Severity=CoError
  274. Facility=SmartCard
  275. Language=English
  276. The identified file does not exist in the smart card.
  277. .
  278. MessageId=37
  279. SymbolicName=SCARD_E_NO_DIR
  280. Severity=CoError
  281. Facility=SmartCard
  282. Language=English
  283. The supplied path does not represent a smart card directory.
  284. .
  285. MessageId=38
  286. SymbolicName=SCARD_E_NO_FILE
  287. Severity=CoError
  288. Facility=SmartCard
  289. Language=English
  290. The supplied path does not represent a smart card file.
  291. .
  292. MessageId=39
  293. SymbolicName=SCARD_E_NO_ACCESS
  294. Severity=CoError
  295. Facility=SmartCard
  296. Language=English
  297. Access is denied to this file.
  298. .
  299. MessageId=40
  300. SymbolicName=SCARD_E_WRITE_TOO_MANY
  301. Severity=CoError
  302. Facility=SmartCard
  303. Language=English
  304. The smartcard does not have enough memory to store the information.
  305. .
  306. MessageId=41
  307. SymbolicName=SCARD_E_BAD_SEEK
  308. Severity=CoError
  309. Facility=SmartCard
  310. Language=English
  311. There was an error trying to set the smart card file object pointer.
  312. .
  313. MessageId=42
  314. SymbolicName=SCARD_E_INVALID_CHV
  315. Severity=CoError
  316. Facility=SmartCard
  317. Language=English
  318. The supplied PIN is incorrect.
  319. .
  320. MessageId=43
  321. SymbolicName=SCARD_E_UNKNOWN_RES_MNG
  322. Severity=CoError
  323. Facility=SmartCard
  324. Language=English
  325. An unrecognized error code was returned from a layered component.
  326. .
  327. MessageId=44
  328. SymbolicName=SCARD_E_NO_SUCH_CERTIFICATE
  329. Severity=CoError
  330. Facility=SmartCard
  331. Language=English
  332. The requested certificate does not exist.
  333. .
  334. MessageId=45
  335. SymbolicName=SCARD_E_CERTIFICATE_UNAVAILABLE
  336. Severity=CoError
  337. Facility=SmartCard
  338. Language=English
  339. The requested certificate could not be obtained.
  340. .
  341. MessageId=46
  342. SymbolicName=SCARD_E_NO_READERS_AVAILABLE
  343. Severity=CoError
  344. Facility=SmartCard
  345. Language=English
  346. Cannot find a smart card reader.
  347. .
  348. MessageId=47
  349. SymbolicName=SCARD_E_COMM_DATA_LOST
  350. Severity=CoError
  351. Facility=SmartCard
  352. Language=English
  353. A communications error with the smart card has been detected. Retry the operation.
  354. .
  355. MessageId=48
  356. SymbolicName=SCARD_E_NO_KEY_CONTAINER
  357. Severity=CoError
  358. Facility=SmartCard
  359. Language=English
  360. The requested key container does not exist on the smart card.
  361. .
  362. ;//
  363. ;// These are warning codes.
  364. ;//
  365. MessageId=101
  366. SymbolicName=SCARD_W_UNSUPPORTED_CARD
  367. Severity=CoError
  368. Facility=SmartCard
  369. Language=English
  370. The reader cannot communicate with the smart card, due to ATR configuration conflicts.
  371. .
  372. MessageId=102
  373. SymbolicName=SCARD_W_UNRESPONSIVE_CARD
  374. Severity=CoError
  375. Facility=SmartCard
  376. Language=English
  377. The smart card is not responding to a reset.
  378. .
  379. MessageId=103
  380. SymbolicName=SCARD_W_UNPOWERED_CARD
  381. Severity=CoError
  382. Facility=SmartCard
  383. Language=English
  384. Power has been removed from the smart card, so that further communication is not possible.
  385. .
  386. MessageId=104
  387. SymbolicName=SCARD_W_RESET_CARD
  388. Severity=CoError
  389. Facility=SmartCard
  390. Language=English
  391. The smart card has been reset, so any shared state information is invalid.
  392. .
  393. MessageId=105
  394. SymbolicName=SCARD_W_REMOVED_CARD
  395. Severity=CoError
  396. Facility=SmartCard
  397. Language=English
  398. The smart card has been removed, so that further communication is not possible.
  399. .
  400. MessageId=106
  401. SymbolicName=SCARD_W_SECURITY_VIOLATION
  402. Severity=CoError
  403. Facility=SmartCard
  404. Language=English
  405. Access was denied because of a security violation.
  406. .
  407. MessageId=107
  408. SymbolicName=SCARD_W_WRONG_CHV
  409. Severity=CoError
  410. Facility=SmartCard
  411. Language=English
  412. The card cannot be accessed because the wrong PIN was presented.
  413. .
  414. MessageId=108
  415. SymbolicName=SCARD_W_CHV_BLOCKED
  416. Severity=CoError
  417. Facility=SmartCard
  418. Language=English
  419. The card cannot be accessed because the maximum number of PIN entry attempts has been reached.
  420. .
  421. MessageId=109
  422. SymbolicName=SCARD_W_EOF
  423. Severity=CoError
  424. Facility=SmartCard
  425. Language=English
  426. The end of the smart card file has been reached.
  427. .
  428. MessageId=110
  429. SymbolicName=SCARD_W_CANCELLED_BY_USER
  430. Severity=CoError
  431. Facility=SmartCard
  432. Language=English
  433. The action was cancelled by the user.
  434. .
  435. MessageId=111
  436. SymbolicName=SCARD_W_CARD_NOT_AUTHENTICATED
  437. Severity=CoError
  438. Facility=SmartCard
  439. Language=English
  440. No PIN was presented to the smart card.
  441. .
  442. ;#endif // SCARD_S_SUCCESS