智能卡常见的报错

news/2024/11/24 9:51:26/

英文版:
Error Code HRESULT value Description
SCARD_F_INTERNAL_ERROR 0x80100001L An internal consistency check failed.
SCARD_E_CANCELLED 0x80100002L The action was cancelled by an SCardCancel request.
SCARD_E_INVALID_HANDLE 0x80100003L The supplied handle was invalid.
SCARD_E_INVALID_PARAMETER 0x80100004L One or more of the supplied parameters could not be properly interpreted.
SCARD_E_INVALID_TARGET 0x80100005L Registry startup information is missing or invalid.
SCARD_E_NO_MEMORY 0x80100006L Not enough memory available to complete this command.
SCARD_F_WAITED_TOO_LONG 0x80100007L An internal consistency timer has expired.
SCARD_E_INSUFFICIENT_BUFFER 0x80100008L The data buffer to receive returned data is too small for the returned data.
SCARD_E_UNKNOWN_READER 0x80100009L The specified reader name is not recognized.
SCARD_E_TIMEOUT 0x8010000AL The user-specified timeout value has expired.
SCARD_E_SHARING_VIOLATION 0x8010000BL The smart card cannot be accessed because of other connections outstanding.
SCARD_E_NO_SMARTCARD 0x8010000CL The operation requires a Smart Card, but no Smart Card is currently in the device.
SCARD_E_UNKNOWN_CARD 0x8010000DL The specified smart card name is not recognized.
SCARD_E_CANT_DISPOSE 0x8010000EL The system could not dispose of the media in the requested manner.
SCARD_E_PROTO_MISMATCH 0x8010000FL The requested protocols are incompatible with the protocol currently in use with the smart card.
SCARD_E_NOT_READY 0x80100010L The reader or smart card is not ready to accept commands.
SCARD_E_INVALID_VALUE 0x80100011L One or more of the supplied parameters values could not be properly interpreted.
SCARD_E_SYSTEM_CANCELLED 0x80100012L The action was cancelled by the system, presumably to log off or shut down.
SCARD_F_COMM_ERROR 0x80100013L An internal communications error has been detected.
SCARD_F_UNKNOWN_ERROR 0x80100014L An internal error has been detected, but the source is unknown.
SCARD_E_INVALID_ATR 0x80100015L An ATR obtained from the registry is not a valid ATR string.
SCARD_E_NOT_TRANSACTED 0x80100016L An attempt was made to end a non-existent transaction.
SCARD_E_READER_UNAVAILABLE 0x80100017L The specified reader is not currently available for use.
SCARD_P_SHUTDOWN 0x80100018L The operation has been aborted to allow the server application to exit.
SCARD_E_PCI_TOO_SMALL 0x80100019L The PCI Receive buffer was too small.
SCARD_E_READER_UNSUPPORTED 0x8010001AL The reader driver does not meet minimal requirements for support.
SCARD_E_DUPLICATE_READER 0x8010001BL The reader driver did not produce a unique reader name.
SCARD_E_CARD_UNSUPPORTED 0x8010001CL The smart card does not meet minimal requirements for support.
SCARD_E_NO_SERVICE 0x8010001DL The Smart card resource manager is not running.
SCARD_E_SERVICE_STOPPED 0x8010001EL The Smart card resource manager has shut down.
SCARD_E_UNEXPECTED 0x8010001FL An unexpected card error has occurred.
SCARD_E_ICC_INSTALLATION 0x80100020L No Primary Provider can be found for the smart card.
SCARD_E_ICC_CREATEORDER 0x80100021L The requested order of object creation is not supported.
SCARD_E_UNSUPPORTED_FEATURE 0x80100022L This smart card does not support the requested feature.
SCARD_E_DIR_NOT_FOUND 0x80100023L The identified directory does not exist in the smart card.
SCARD_E_FILE_NOT_FOUND 0x80100024L The identified file does not exist in the smart card.
SCARD_E_NO_DIR 0x80100025L The supplied path does not represent a smart card directory.
SCARD_E_NO_FILE 0x80100026L The supplied path does not represent a smart card file.
SCARD_E_NO_ACCESS 0x80100027L Access is denied to this file.
SCARD_E_WRITE_TOO_MANY 0x80100028L The smartcard does not have enough memory to store the information.
SCARD_E_BAD_SEEK 0x80100029L There was an error trying to set the smart card file object pointer.
SCARD_E_INVALID_CHV 0x8010002AL The supplied PIN is incorrect.
SCARD_E_UNKNOWN_RES_MNG 0x8010002BL An unrecognized error code was returned from a layered component.
SCARD_E_NO_SUCH_CERTIFICATE 0x8010002CL The requested certificate does not exist.
SCARD_E_CERTIFICATE_UNAVAILABLE 0x8010002DL The requested certificate could not be obtained.
SCARD_E_NO_READERS_AVAILABLE 0x8010002EL Cannot find a smart card reader.
SCARD_E_COMM_DATA_LOST 0x8010002FL A communications error with the smart card has been detected.Retry the operation.
SCARD_E_NO_KEY_CONTAINER 0x80100030L The requested key container does not exist on the smart card.
SCARD_E_SERVER_TOO_BUSY 0x80100031L The Smart card resource manager is too busy to complete this operation.
SCARD_W_UNSUPPORTED_CARD 0x80100065L The reader cannot communicate with the card, due to ATR string configuration conflicts.
SCARD_W_UNRESPONSIVE_CARD 0x80100066L The smart card is not responding to a reset.
SCARD_W_UNPOWERED_CARD 0x80100067L Power has been removed from the smart card, so that further communication is not possible.
SCARD_W_RESET_CARD 0x80100068L The smart card has been reset, so any shared state information is invalid.
SCARD_W_REMOVED_CARD 0x80100069L The smart card has been removed, so further communication is not possible.
SCARD_W_SECURITY_VIOLATION 0x8010006AL Access was denied because of a security violation.
SCARD_W_WRONG_CHV 0x8010006BL The card cannot be accessed because the wrong PIN was presented.
SCARD_W_CHV_BLOCKED 0x8010006CL The card cannot be accessed because the maximum number of PIN entry attempts has been reached.
SCARD_W_EOF 0x8010006DL The end of the smart card file has been reached.
SCARD_W_CANCELLED_BY_USER 0x8010006EL The action was canceled by the user.
SCARD_W_CARD_NOT_AUTHENTICATED 0x8010006FL No PIN was presented to the Smart card.

中文:

  • 下表显示了智能卡功能返回的主要错误值。

某些错误值可以与表示类似条件的现有Microsoft®Win32®错误值具有相同的值。下表显示了这些值。

错误代码 HRESULT值 描述
SCARD_F_INTERNAL_ERROR 0x80100001L 内部一致性检查失败。
SCARD_E_CANCELLED 0x80100002L 该操作已被SCardCancel请求取消。
SCARD_E_INVALID_HANDLE 0x80100003L 提供的句柄无效。
SCARD_E_INVALID_PARAMETER 0x80100004L 无法正确解释一个或多个提供的参数。
SCARD_E_INVALID_TARGET 0x80100005L 注册表启动信息丢失或无效。
SCARD_E_NO_MEMORY 0x80100006L 没有足够的内存可用于完成此命令。
SCARD_F_WAITED_TOO_LONG 0x80100007L 内部一致性计时器已过期。
SCARD_E_INSUFFICIENT_BUFFER 0x80100008L 接收返回数据的数据缓冲区对于返回的数据来说太小了。
SCARD_E_UNKNOWN_READER 0x80100009L 无法识别指定的读者名称。
SCARD_E_TIMEOUT 0x8010000AL 用户指定的超时值已过期。
SCARD_E_SHARING_VIOLATION 0x8010000BL 由于其他未完成的连接,无法访问智能卡。
SCARD_E_NO_SMARTCARD 0x8010000CL 该操作需要智能卡,但设备中当前没有智能卡。
SCARD_E_UNKNOWN_CARD 0x8010000DL 无法识别指定的智能卡名称。
SCARD_E_CANT_DISPOSE 0x8010000EL 系统无法以请求的方式处理媒体。
SCARD_E_PROTO_MISMATCH 0x8010000FL 请求的协议与当前与智能卡一起使用的协议不兼容。
SCARD_E_NOT_READY 0x80100010L 读卡器或智能卡尚未准备好接受命令。
SCARD_E_INVALID_VALUE 0x80100011L 无法正确解释一个或多个提供的参数值。
SCARD_E_SYSTEM_CANCELLED 0x80100012L 该操作被系统取消,可能是注销或关闭。
SCARD_F_COMM_ERROR 0x80100013L 检测到内部通信错误。
SCARD_F_UNKNOWN_ERROR 0x80100014L 检测到内部错误,但来源未知。
SCARD_E_INVALID_ATR 0x80100015L 从注册表获得的ATR不是有效的ATR字符串。
SCARD_E_NOT_TRANSACTED 0x80100016L 试图结束不存在的事务。
SCARD_E_READER_UNAVAILABLE 0x80100017L 指定的阅读器目前无法使用。
SCARD_P_SHUTDOWN 0x80100018L 该操作已中止,以允许服务器应用程序退出。
SCARD_E_PCI_TOO_SMALL 0x80100019L PCI接收缓冲区太小。
SCARD_E_READER_UNSUPPORTED 0x8010001AL 阅读器驱动程序不满足最低支持要求。
SCARD_E_DUPLICATE_READER 0x8010001BL 读卡器驱动程序没有生成唯一的读者名称。
SCARD_E_CARD_UNSUPPORTED 0x8010001CL 智能卡不符合最低支持要求。
SCARD_E_NO_SERVICE 0x8010001DL 智能卡资源管理器未运行。
SCARD_E_SERVICE_STOPPED 0x8010001EL 智能卡资源管理器已关闭。
SCARD_E_UNEXPECTED 0x8010001FL 发生了意外的卡错误。
SCARD_E_ICC_INSTALLATION 0x80100020L 无法找到智能卡的主要提供商。
SCARD_E_ICC_CREATEORDER 0x80100021L 不支持请求的对象创建顺序。
SCARD_E_UNSUPPORTED_FEATURE 0x80100022L 此智能卡不支持所请求的功能。
SCARD_E_DIR_NOT_FOUND 0x80100023L 智能卡中不存在已识别的目录。
SCARD_E_FILE_NOT_FOUND 0x80100024L 智能卡中不存在标识的文件。
SCARD_E_NO_DIR 0x80100025L 提供的路径不代表智能卡目录。
SCARD_E_NO_FILE 0x80100026L 提供的路径不代表智能卡文件。
SCARD_E_NO_ACCESS 0x80100027L 此文件拒绝访问。
SCARD_E_WRITE_TOO_MANY 0x80100028L 智能卡没有足够的内存来存储信息。
SCARD_E_BAD_SEEK 0x80100029L 尝试设置智能卡文件对象指针时出错。
SCARD_E_INVALID_CHV 0x8010002AL 提供的PIN不正确。
SCARD_E_UNKNOWN_RES_MNG 0x8010002BL 从分层组件返回无法识别的错误代码。
SCARD_E_NO_SUCH_CERTIFICATE 0x8010002CL 请求的证书不存在。
SCARD_E_CERTIFICATE_UNAVAILABLE 0x8010002DL 无法获取所请求的证书。
SCARD_E_NO_READERS_AVAILABLE 0x8010002EL 找不到智能卡读卡器。
SCARD_E_COMM_DATA_LOST 0x8010002FL 检测到智能卡出现通信错误。重试操作。
SCARD_E_NO_KEY_CONTAINER 0x80100030L 智能卡上不存在请求的密钥容器。
SCARD_E_SERVER_TOO_BUSY 0x80100031L 智能卡资源管理器太忙,无法完成此操作。
SCARD_W_UNSUPPORTED_CARD 0x80100065L 由于ATR字符串配置冲突,读卡器无法与卡通信。
SCARD_W_UNRESPONSIVE_CARD 0x80100066L 智能卡无法响应重置。
SCARD_W_UNPOWERED_CARD 0x80100067L 电源已从智能卡中移除,因此无法进行进一步的通信。
SCARD_W_RESET_CARD 0x80100068L 智能卡已重置,因此任何共享状态信息均无效。
SCARD_W_REMOVED_CARD 0x80100069L 智能卡已被删除,因此无法进行进一步的通信。
SCARD_W_SECURITY_VIOLATION 0x8010006AL 由于安全违规,访问被拒绝。
SCARD_W_WRONG_CHV 0x8010006BL 由于提供了错误的PIN,因此无法访问该卡。
SCARD_W_CHV_BLOCKED 0x8010006CL 无法访问该卡,因为已达到最大PIN输入尝试次数。
SCARD_W_EOF 0x8010006DL 已到达智能卡文件的末尾。
SCARD_W_CANCELLED_BY_USER 0x8010006EL 该操作已被用户取消。
SCARD_W_CARD_NOT_AUTHENTICATED 0x8010006FL 没有PIN被提供给智能卡。

参考网址:
http://blog.chinaunix.net/uid-26707720-id-3400576.html
https://www.xuebuyuan.com/zh-tw/3210114.html


http://www.ppmy.cn/news/498480.html

相关文章

(转)无法启动服务,原因可能是已被禁用或与其相关联的设备没有启动

【转载原因:win7安装windows Update独立安装程序,报错。】 【转载原文:https://blog.csdn.net/weixin_40173917/article/details/90147491】 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转…

网银显示服务器无效应,网银U盾报错“系统智能卡服务未启动”的解决方案

前言 网银已经是当前大家经常使用的支付工具和手段,一般网银需要使用U盾来进行身份认证。而我们经常由于使用电脑管家或者360卫士等安全软件进行系统优化时,导致系统智能卡服务被禁用或者从未对其进行过配置,导致U盾在网银认证中出现各种问题…

Visual Studio学习(一)安装、创建项目

1.安装visual studio2022 vs官网Visual Studio: 面向软件开发人员和 Teams 的 IDE 和代码编辑器 2.安装 根据自己的需要去下载,我之前安装过一次,刚开始学习vb的时候发现窗体没出现(没下载),漏下也没关系后面想要也可…

力扣算法练习(一)

目录 1. 两数相加(2) 2. 寻找两个正序数组的中位数(4) 1. 两数相加(2) 给你两个 非空 的链表,表示两个非负的整数。它们每位数字都是按照 逆序 的方式存储的,并且每个节点只能存储…

【IIC子系统】IIC驱动框架解析(二)

文章目录 I2C相关的数据结构(结构体)struct i2c_driverstruct i2c_devicestruct i2c_device_idstruct i2c_adapter 通信APIi2c_msg方式常用的数据传输函数 SMbus方式常用数据传输函数 代码实例i2c_msg版本的EEPROM驱动设备驱动主机驱动 SMbus版本的EEPRO…

sisoftware java测试_SiSoftware Sandra测试及全文总结_内存硬盘评测-中关村在线

●SiSoftware Sandra测试 这是一套功能强大的系统分析评测工具,拥有超过30种以上的测试项目,主要包括有 CPU、Drives、CD-ROM/DVD、Memory、SCSI、APM/ACPI、鼠标、键盘、网络、主板、打印机等。全面支持当前各种 VIA、ALI 芯片组和 Pentium 4、AMD DDR平…

golang去除字符串的换行符

在golang中,有时候需要处理换行符(\n)以便更好地访问和操作文本。但有时需要去除文本中的换行符以便进行某些计算或统计功能。 1 strings.Replace函数 strings.Replace函数能够将字符序列中的某些字符替换成其他字符或删除字符。 package …

基于高通camera-帧率-曝光

前人种树,后人乘凉;创造不易,请勿迁移~ daisy.skye的博客_CSDN博客-嵌入式,Qt,Linux领域博主 daisy.skye擅长嵌入式,Qt,Linux,等方面的知识 https://blog.csdn.net/qq_40715266?typelately ———————————————— 版权声明&…