📄 hterror.h
字号:
//HTError.h
#ifndef _HTERROR_H
#define _HTERROR_H
// 借用操作系统返回错误
// ERROR_NOT_ENOUGH_MEMORY
// ERROR_MORE_DATA
// ERROR_NOT_FOUND
// or GetLastError()
#define HT_PARAM_ERROR 0x88000001 // 参数错误
#define HT_CONTEXT_ERROR 0x88000002 // PC/SC上下文异常
#define HT_LIST_READER_ERROR 0x88000003 // 枚举硬件设备失败
#define HT_LINK_ERROR 0x88000004 // 连接硬件设备失败
#define HT_UNLINK_ERROR 0x88000005 // 断开硬件设备连接失败
#define HT_RESET_ERROR 0x88000006 // 复位失败
#define HT_PCSC_ERROR 0x88000007 // PC/SC通讯错误
#define HT_UNKNOWN_ERROR 0x88000008 // 未知错误
#define HT_DATA_ERROR 0x88000020 // 数据错误
#define HT_DATA_LEN_ERROR 0x88000021 // 数据长度错误
#define HT_CREATE_MF_ERROR 0x88000030 // 创建MF错误
#define HT_ACTIVE_MF_ERROR 0x88000031 // 激活MF错误
#define HT_DELETE_MF_ERROR 0x88000032 // 删除MF错误
#define HT_CREATE_DF_ERROR 0x88000033 // 创建DF错误
#define HT_CREATE_EF_ERROR 0x88000034 // 创建文件错误
#define HT_NO_MF 0x88000035 // 没有MF
#define HT_NO_DF 0x88000036 // 没有DF
#define HT_NO_EF 0x88000037 // 该文件不存在
#define HT_EF_EXIST 0x88000038 // 文件已存在
#define HT_HW_NO_SPACE 0x88000039 // 硬件没有空间
#define HT_HW_INVALID_FORMAT 0x8800003A // 硬件的格式不对
#define HT_WRITE_KEY_ERROR 0x8800003B // 写密钥错误
#define HT_PIN_LEN_ERROR 0x8800003C // pin的长度错误
#define HT_PIN_ERROR 0x8800003D // pin错误
#define HT_PIN_LOCK 0x8800003E // pin被锁死
#define HT_READ_ERROR 0x8800003F // 读错误
#define HT_WRITE_ERROR 0x88000040 // 写错误
#define HT_RSA_MODE_ERROR 0x88000041 // RSA模式错误
#define HT_LABEL_LEN_ERROR 0x88000042 // Label(HaiKey名字)长度错误
#define HT_NEED_RIGHT_ERROR 0x88000043 // 执行该功能需要权限
#define HT_COMMAND_ERROR 0x88000044 // 硬件指令返回码错误
// csp
#define HT_CSP_CONTAINER_EXIST 0x88000050 // CSP密钥容器已存在
#define HT_CSP_SILENT_ERROR 0x88000051 // 用于在CSP不允许弹出UI(用户界面)时
#define HT_CSP_NO_KEY 0x88000052 // 没有找到RSA密钥对或相关参数不正确
#define HT_CSP_ERROR 0x88000053 // 调用Haitai CSP失败
#define HT_INSTALL_ERROR 0x88000060 // 没有找到安装项
#define HT_USER_CANCEL 0x88000061 // 在UI(用户界面)上用户选择了“取消”按钮
#define HT_LOAD_DLL_ERROR 0x88000062 // 加载动态库失败
#define HT_SYS_VER_ERROR 0x88000063 // 操作系统版本为98,me,不支持该功能
#define HT_P12_ERROR 0x88000064 // p12证书不能正确解析
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -