These are the well known error response codes that may appear in a
SCardException.
Namespace:
CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Member name | Description | |
---|---|---|
Cancelled | The action was cancelled by an SCardTrack.Cancel request. | |
CommunicationLost | A communications error with the smart card has been detected. Retry the operation. | |
InsufficientBuffer | The data buffer to receive returned data is too small for the returned data. | |
InternalError | In internal error occurred. Example: reader does not respond with SW to an invalid command; GetUID() on 5x25 | |
InvalidHandle | The supplied handle was invalid. | |
InvalidParameter | One or more of the supplied parameters could not be properly interpreted. | |
InvalidValue | One or more of the supplied parameters values could not be properly interpreted. | |
NoMemory | Not enough memory available to complete this command. | |
NoReader | Cannot find a smart card reader. This error can occur if there is no reader at all or if a reader gets disconnected; | |
NoService | The Smart Card Resource Manager is not running. | |
NoSmartCard | The operation requires a smart card, but no smart card is currently in the device. | |
NotReady | The reader or smart card is not ready to accept commands. | |
NotTransacted | An attempt was made to end a non-existent transaction. | |
ProtoMismatch | The requested protocols are incompatible with the protocol currently in use with the smart card. | |
ReaderCallFailed | A remote procedure call during communication with a reader that is believed to be connected failed. This can happen when the reader is disconnected during communication with the card. | |
ReaderCommunicationAborted | The I/O operation has been aborted because of either a thread exit or an application request. This can happen when the reader is disconnected during communication with the card. | |
ReaderNotFunctioning | A reader that is believed to be connected is not functioning. This can happen when the reader is disconnected during communication with the card. | |
ReaderUnavailable | The specified reader is not currently available for use. | |
RemovedCard | The smart card has been removed, so that further communication is not possible. This error may be cleared by the SCardComm.Reconnect service. | |
ResetCard | The smart card has been reset, so any shared state information is invalid. This error may be cleared by the SCardComm.Reconnect service. | |
ServiceStopped | The Smart Card Resource Manager has shut down. | |
SharingViolation | The smart card cannot be accessed because of other connections outstanding | |
SystemCancelled | The action was cancelled by the system, presumably to log off or shut down. | |
Timeout | The specified timeout value has expired. | |
UnknownCard | The specified smart card name is not recognized | |
UnknownInterface | The Smart Card Resource Manager interface is not available. This code can be generated by the system if the service is shut down during operation. | |
UnknownReader | The specified reader name is not recognized. | |
UnpoweredCard | Power has been removed from the card, so that further communication is not possible. This error may be cleared by the SCardComm.Reconnect service. | |
UnresponsiveCard | The smart card is not responding to a reset. This error may be cleared by the SCardComm.Reconnect service. | |
UnsupportedCard | The reader cannot communicate with the card, due to ATR configuration conflicts. This error may be cleared by the SCardComm.Reconnect service. |
Note that other values, not defined in this enumeration, may appear inside a
SCardException. Other values are derived from the actual native
response code, if it lies in the range 0x80100000 through 0x8010FFFF simply by taking the
low word as an unsigned value.