Authentication Return Values

Network Provider Values

The Network Provider API uses the following defined values.

SymbolicCodeDescription
ERROR_BROKEN_PIPE0x00000109The client attempted a smart card operation in a remote session, such as a client session running on a terminal server, and the operating system in use does not support smart card redirection.
SCARD_E_BAD_SEEK0x80100029An error occurred in setting the smart card file object pointer.
SCARD_E_CANCELLED0x80100002The action was canceled by an SCardCancel request.
SCARD_E_CANT_DISPOSE0x8010000EThe system could not dispose of the media in the requested manner.
SCARD_E_CARD_UNSUPPORTED0x8010001CThe smart card does not meet minimal requirements for support.
SCARD_E_CERTIFICATE_UNAVAILABLE0x8010002DThe requested certificate could not be obtained.
SCARD_E_COMM_DATA_LOST0x8010002FA communications error with the smart card has been detected.
SCARD_E_DIR_NOT_FOUND0x80100023The specified directory does not exist in the smart card.
SCARD_E_DUPLICATE_READER0x8010001BThe reader driver did not produce a unique reader name.
SCARD_E_FILE_NOT_FOUND0x80100024The specified file does not exist in the smart card.
SCARD_E_ICC_CREATEORDER0x80100021The requested order of object creation is not supported.
SCARD_E_ICC_INSTALLATION0x80100020No primary provider can be found for the smart card.
SCARD_E_INSUFFICIENT_BUFFER0x80100008The data buffer for returned data is too small for the returned data.
SCARD_E_INVALID_ATR0x80100015An ATR string obtained from the registry is not a valid ATR string.
SCARD_E_INVALID_CHV0x8010002AThe supplied PIN is incorrect.
SCARD_E_INVALID_HANDLE0x80100003The supplied handle was not valid.
SCARD_E_INVALID_PARAMETER0x80100004One or more of the supplied parameters could not be properly interpreted.
SCARD_E_INVALID_TARGET0x80100005Registry startup information is missing or not valid.
SCARD_E_INVALID_VALUE0x80100011One or more of the supplied parameter values could not be properly interpreted.
SCARD_E_NO_ACCESS0x80100027Access is denied to the file.
SCARD_E_NO_DIR0x80100025The supplied path does not represent a smart card directory.
SCARD_E_NO_FILE0x80100026The supplied path does not represent a smart card file.
SCARD_E_NO_KEY_CONTAINER0x80100030The requested key container does not exist on the smart card.
SCARD_E_NO_MEMORY0x80100006Not enough memory available to complete this command.
SCARD_E_NO_PIN_CACHE0x80100033The smart card PIN cannot be cached. Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP: This error code is not available.
SCARD_E_NO_READERS_AVAILABLE0x8010002ENo smart card reader is available.
SCARD_E_NO_SERVICE0x8010001DThe smart card resource manager is not running.
SCARD_E_NO_SMARTCARD0x8010000CThe operation requires a smart card, but no smart card is currently in the device.
SCARD_E_NO_SUCH_CERTIFICATE0x8010002CThe requested certificate does not exist.
SCARD_E_NOT_READY0x80100010The reader or card is not ready to accept commands.
SCARD_E_NOT_TRANSACTED0x80100016An attempt was made to end a nonexistent transaction.
SCARD_E_PCI_TOO_SMALL0x80100019The PCI receive buffer was too small.
SCARD_E_PIN_CACHE_EXPIRED0x80100032The smart card PIN cache has expired. Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP: This error code is not available.
SCARD_E_PROTO_MISMATCH0x8010000FThe requested protocols are incompatible with the protocol currently in use with the card.
SCARD_E_READ_ONLY_CARD0x80100034The smart card is read-only and cannot be written to. Windows Server 2008, Windows Vista, Windows Server 2003 and Windows XP: This error code is not available.
SCARD_E_READER_UNAVAILABLE0x80100017The specified reader is not currently available for use.
SCARD_E_READER_UNSUPPORTED0x8010001AThe reader driver does not meet minimal requirements for support.
SCARD_E_SERVER_TOO_BUSY0x80100031The smart card resource manager is too busy to complete this operation.
SCARD_E_SERVICE_STOPPED0x8010001EThe smart card resource manager has shut down.
SCARD_E_SHARING_VIOLATION0x8010000BThe smart card cannot be accessed because of other outstanding connections.
SCARD_E_SYSTEM_CANCELLED0x80100012The action was canceled by the system, presumably to log off or shut down.
SCARD_E_TIMEOUT0x8010000AThe user-specified time-out value has expired.
SCARD_E_UNEXPECTED0x8010001FAn unexpected card error has occurred.
SCARD_E_UNKNOWN_CARD0x8010000DThe specified smart card name is not recognized.
SCARD_E_UNKNOWN_READER0x80100009The specified reader name is not recognized.
SCARD_E_UNKNOWN_RES_MNG0x8010002BAn unrecognized error code was returned.
SCARD_E_UNSUPPORTED_FEATURE0x80100022This smart card does not support the requested feature.
SCARD_E_WRITE_TOO_MANY0x80100028An attempt was made to write more data than would fit in the target object.
SCARD_F_COMM_ERROR0x80100013An internal communications error has been detected.
SCARD_F_INTERNAL_ERROR0x80100001An internal consistency check failed.
SCARD_F_UNKNOWN_ERROR0x80100014An internal error has been detected, but the source is unknown.
SCARD_F_WAITED_TOO_LONG0x80100007An internal consistency timer has expired.
SCARD_P_SHUTDOWN0x80100018The operation has been aborted to allow the server application to exit.
SCARD_S_SUCCESSNo error was encountered.
SCARD_W_CANCELLED_BY_USER0x8010006EThe action was canceled by the user.
SCARD_W_CACHE_ITEM_NOT_FOUND0x80100070The requested item could not be found in the cache.
SCARD_W_CACHE_ITEM_STALE0x80100071The requested cache item is too old and was deleted from the cache.
SCARD_W_CACHE_ITEM_TOO_BIG0x80100072The new cache item exceeds the maximum per-item size defined for the cache.
SCARD_W_CARD_NOT_AUTHENTICATED0x8010006FNo PIN was presented to the smart card.
SCARD_W_CHV_BLOCKED0x8010006CThe card cannot be accessed because the maximum number of PIN entry attempts has been reached.
SCARD_W_EOF0x8010006DThe end of the smart card file has been reached.
SCARD_W_REMOVED_CARD0x80100069The smart card has been removed, so further communication is not possible.
SCARD_W_RESET_CARD0x80100068The smart card was reset.
SCARD_W_SECURITY_VIOLATION0x8010006AAccess was denied because of a security violation.
SCARD_W_UNPOWERED_CARD0x80100067Power has been removed from the smart card, so that further communication is not possible.
SCARD_W_UNRESPONSIVE_CARD0x80100066The smart card is not responding to a reset.
SCARD_W_UNSUPPORTED_CARD0x80100065The reader cannot communicate with the card, due to ATR string configuration conflicts.
SCARD_W_WRONG_CHV0x8010006BThe card cannot be accessed because the wrong PIN was presented.
68 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.