Show / Hide Table of Contents

Enum ErrorCode

Enumeration for errors that can be raised by WinSCard.

Namespace: WSCT.Wrapper
Assembly: WSCT.dll
Syntax
public enum ErrorCode : uint

Fields

Name Description
BadSeek

There was an error trying to set the smart card file object pointer.

Cancelled

Error: The action was cancelled by an SCardCancel request.

CancelledByUser

Warning: The action was cancelled by the user.

CantDispose

Error: The system could not dispose of the media in the requested manner.

CardNotAuthenticated

Warning: No PIN was presented to the smart card.

CardUnsupported

The smart card does not meet minimal requirements for support.

CertificateUnavailable

The requested certificate could not be obtained.

ChvBlocked

Warning: The card cannot be accessed because the maximum number of PIN entry attempts has been reached.

CommDataLost

A communications error with the smart card has been detected. Retry the operation.

CommError

Fatal: An internal communications error has been detected.

DirNotFound

The identified directory does not exist in the smart card.

DuplicateReader

The reader driver did not produce a unique reader name.

Eof

Warning: The end of the smart card file has been reached.

ErrorInvalidHandle

The handle is invalid.

ErrorInvalidParameter

The parameter is incorrect.

FileNotFound

The identified file does not exist in the smart card.

IccCreateorder

The requested order of object creation is not supported.

IccInstallation

No Primary Provider can be found for the smart card.

InsufficientBuffer

Error: The data buffer to receive returned data is too small for the returned data.

InternalError

Fatal: An internal consistency check failed.

InvalidAtr

Error: An ATR obtained from the registry is not a valid ATR String.

InvalidChv

The supplied PIN is incorrect.

InvalidHandle

Error: The supplied handle was invalid.

InvalidParameter

Error: One or more of the supplied parameters could not be properly interpreted.

InvalidTarget

Error: Registry startup information is missing or invalid.

InvalidValue

Error: One or more of the supplied parameters values could not be properly interpreted.

NoAccess

Access is denied to this file.

NoDir

The supplied path does not represent a smart card directory.

NoFile

The supplied path does not represent a smart card file.

NoKeyContainer

The requested key container does not exist on the smart card.

NoMemory

Error: Not enough memory available to complete this commandAPDU.

NoReadersAvailable

Cannot find a smart card reader.

NoService

The Smart card resource manager is not running.

NoSmartcard

Error: The operation requires a Smart Card, but no Smart Card is currently in the device.

NoSuchCertificate

The requested certificate does not exist.

NotReady

Error: The reader or smart card is not ready to accept commands.

NotTransacted

Error: An attempt was made to end a non-existent transaction.

PciTooSmall

The PCI Receive buffer was too small.

ProtoMismatch

Error: The requested protocols are incompatible with the protocol currently in use with the smart card.

ReaderUnavailable

Error: The specified reader is not currently available for use.

ReaderUnsupported

The reader driver does not meet minimal requirements for support.

RemovedCard

Warning: The smart card has been removed, so that further communication is not possible.

ResetCard

Warning: The smart card has been reset, so any shared state information is invalid.

SecurityViolation

Warning: Access was denied because of a security violation.

ServerTooBusy

The Smart card resource manager is too busy to complete this operation.

ServiceStopped

The Smart card resource manager has shut down.

SharingViolation

Error: The smart card cannot be accessed because of other connections outstanding.

Shutdown

P: The operation has been aborted to allow the server application to exit.

Success

Success: No error was encountered.

SystemCancelled

Error: The action was cancelled by the system, presumably to log off or shut down.

Timeout

Error: The user-specified timeout value has expired.

Unexpected

An unexpected card error has occurred.

UnknownCard

Error: The specified smart card name is not recognized.

UnknownError

Fatal: An internal error has been detected, but the source is unknown.

UnknownReader

Error: The specified reader name is not recognized.

UnknownResMng

An unrecognized error code was returned from a layered component.

UnpoweredCard

Warning: Power has been removed from the smart card, so that further communication is not possible.

UnresponsiveCard

Warning: The smart card is not responding to a reset.

UnsupportedCard

Warning: The reader cannot communicate with the smart card, due to ATR configuration conflicts.

UnsupportedFeature

This smart card does not support the requested feature.

WaitedTooLong

Fatal: An internal consistency timer has expired.

WriteTooMany

The smartcard does not have enough memory to store the information.

WrongChv

Warning: The card cannot be accessed because the wrong PIN was presented.

Extension Methods

JsonHelpers.WriteToJsonFile(String)
JsonHelpers.WriteToJsonFile(String, Boolean)
JsonHelpers.WriteToJsonString()
JsonHelpers.WriteToJsonString(Boolean)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX