UniKey API Reference Error Codes: Difference between revisions

From SecuTech Wiki
Jump to navigationJump to search
Joseph (talk | contribs)
No edit summary
Joseph (talk | contribs)
(No difference)

Revision as of 12:30, 28 August 2012


List of Error Codes

General Error Codes

Result Value Description
SUCCESS 0 Success
ERROR_UNIKEY_NOT_FOUND 200 No UniKey dongle
ERROR_UNIKEY_INVALID_PASSWORD 201 Found UniKey dongle, but Basic passwords are incorrect
ERROR_UNIKEY_INVALID_PASSWORD_OR_ID 202 Wrong password or UniKey HID
ERROR_UNIKEY_SET_SOFTID 203 Set Soft ID error
ERROR_UNIKEY_INVALID_ADDR_OR_SIZE 204 Read/Write address or length is wrong
ERROR_UNIKEY_UNKNOWN_COMMAND 205 No such command
ERROR_UNIKEY_READ_MEMORY 207 Read Error
ERROR_UNIKEY_WRITE_MEMORY 208 Write Error
ERROR_UNIKEY_RANDOM 209 Random number Error
ERROR_UNIKEY_SEED 210 Seed code Error
ERROR_UNIKEY_CALCULATE 211 Calculate Error
ERROR_UNIKEY_NEED_OPEN 212 No logon dongle before operating dongle
ERROR_UNIKEY_OPEN_OVERFLOW 213 Too many open dongles (>16)
ERROR_UNIKEY_NOMORE 214 No more dongle
ERROR_UNIKEY_NEED_FIND 215 No Find before FindNext
ERROR_UNIKEY_MODULE 216 License module error
ERROR_UNIKEY_AR_BAD_COMMAND 217 Arithmetic instruction Error
ERROR_UNIKEY_AR_UNKNOWN_OPCODE 218 Arithmetic operator Error
ERROR_UNIKEY_AR_WRON_GBEGIN 219 Const number can't use on first arithmetic instruction
ERROR_UNIKEY_AR_WRONG_END 220 Const number can't use on last arithmetic instruction
ERROR_UNIKEY_AR_VALUE_OVERFLOW 221 Const number > 63
ERROR_UNIKEY_INVALID_KEY 222 The key in the key storage is wrong
ERROR_UNIKEY_VERIFY_ADV_PASSWORD 223 Advanced passwords (password3 and passowrd4) not verified
ERROR_UNIKEY_INVALID_KEY_STORE 224 Wrong key storage number
EERROR_UNIKEY_GENERATE_NEW_PASSWORD 225 Generate new password Error
ERROR_UNIKEY_READ_UPDATETAG 226 Read UpdateTag error
ERROR_UNIKEY_WRITE_UPDATETAG 227 Write UpdateTag error
ERROR_UNIKEY_ENCRYPT_FAILED 228 Encrypt data error
ERROR_UNIKEY_DECRYPT_FAILED 229 Decrypt data error
ERROR_UNIKEY_READ_TIME 230 Get UniKey time error
ERROR_UNIKEY_WRITE_TIME 231 Set UniKey time error
ERROR_UNIKEY_WRITE_TIME_MODULE 232 Write time module error
ERROR_UNIKEY_COMPARE_TIME_MODULE 233 The specific time is before the module's start time
ERROR_UNIKEY_TIME_MODULE_NOT_NULL 234 The real time module is not null, this error is returned when write once flag is set
ERROR_UNIKEY_TIME_MODULE_OVERDUR 235 The specific time is later than the module's end time, or the module is expired
ERROR_UNIKEY_ALREADY_LOCKED 236 Dongle Already Locked (when lock twice or open after lock)
#define ERROR_UNIKEY_MAX_USERS 237 Dongle Already Max Users Logoned
#define ERROR_UNIKEY_MAX_KEYS 238 Dongle Already Max Keys, need to delete and the regenerate
#define ERROR_UNIKEY_KEY_INDEX 239 Dongle Over KeyIndex, no key to delete
#define ERROR_UNIKEY_FS_FILE_NAME 240 Wrong or invaild file name
#define ERROR_UNIKEY_FS_NO_FILE 241 No such file name
#define ERROR_UNIKEY_FS_FILE_OFFSET 242 Offset of file error
#define ERROR_UNIKEY_FS_UNKONW 243 Unknown error
#define ERROR_UNIKEY_FS_NO_MEMORY 244 not enough free memory
#define ERROR_UNIKEY_FS_FILE_EXIST 245 file already existed
#define ERROR_UNIKEY_FS_ERR_SYS_UNINIT 246 The file system is not initialized.
#define ERROR_UNIKEY_FS_ERR_OPEN_FILE 247 Fail to open file
#define ERRO_NO_ENCYYPT 248 No Secu Drive
#define ERRO_PASSWORD 249 Password error
#define ERRO_USERLOCK 250 User has been locked
#define ERRO_LOGOUT 251 Logout error
#define ERRO_UNKNOW 252 Unknown error


Network Function Error Codes

ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE 100 Net UniKey Error Base Description
ERROR_UNIKEY_NETUNIKEY_MEMORY_ERROR ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+1, 101 Memory allocation error
ERROR_UNIKEY_NETUNIKEY_SEND_ERROR ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+2, 102 Send error
ERROR_UNIKEY_NETUNIEY_RECEIVE_ERROR ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+3, 103 Receive error
ERROR_UNIKEY_NETUNIKEY_MESSAGE_WRONG ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+4, 104 Communication message is modified
ERROR_UNIKEY_NETUNIKEY_SETUP_SOCKET_ERROR ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+5, 105 Setup socket error
ERROR_UNIKEY_NETUNIKEY_CLIENT_EXSIT ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+6, 106 The client already exists, per this mode
ERROR_UNIKEY_NETUNIKEY_TOO_MANY_CLIENT ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+7, 107 The number of client reach the limitation
ERROR_UNIKEY_NETUNIKEY_IN_BLACKLIST ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+8, 108 The client is in the black list
ERROR_UNIKEY_NETUNIKEY_OUT_WHITELIST ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+9, 109 The client is not in the white list
ERROR_UNIKEY_NETUNIKEY_MESSAGE_CHANGE ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+10, 110 The message packet was changed
ERROR_UNIKEY_NETUNIKEY_AREADY_START ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+11, 111 The server has already started
ERROR_UNIKEY_NETUNIKEY_SOCKET_INIT_FAILED ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+12, 112 Cannot initialize the socket
ERROR_UNIKEY_NETUNIKEY_SOCKET_BIND_FAILED ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+13, 113 Cannot bind the port with the socket
ERROR_UNIKEY_NETUNIKEY_SOCKET_LISTEN_FAILED ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+14, 114 Cannot start listening with the socket
ERROR_UNIKEY_NETUNIKEY_START_UDP_SERVER_FAILED ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+15, 115 Start UDP server failed
ERROR_UNIKEY_NETUNIKEY_TOO_LONG_MESSAGE ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+16, 116 Too long message
ERROR_UNIKEY_NETUNIKEY_NOT_WORKING ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+17, 117 Cannot connect remote NetUniKey server
ERROR_UNIKEY_NETUNIKEY_DISCARD_BY_SERVER ERROR_UNIKEY_NETUNIEKY_ERROR_UNIKEY_BASE+18, 118 The client is discarded by the server