UnikeyMBS class constants

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

UnikeyMBS constants

Encryption Modes

Constant Value Description
CBC_MODE 2 CBC Mode
DES1 1 DES1
DES2 2 DES2
DES3 3 DES3
DES_KEY 2 DES Key
DES_KEY_LEN 24 DES Key Len
ECB_MODE 1 ECB Mode
RSA 4 RSA
RSA_KEY 1 RSA Key
RSA_KEY_1024 3 RSA Key 1024 bit.
RSA_KEY_2048 4 RSA Key 2048 bit.
RSA_KEY_LEN 1408 RSA Key Len

Errors

Constant Value Description
ERROR_KEY_INDEX 259 Error with key index.
ERROR_MAX_KEYS 258 Error with max keys.
ERROR_MAX_USERS 257 Error with max users.
ERROR_UNIKEY_ALREADY_LOCKED 236 Dongle Already Locked (When Lock Twice Or Open After Lock)
ERROR_UNIKEY_AR_BAD_COMMAND 217 Arithmetic Instruction Error
ERROR_UNIKEY_AR_UNKNOWN_OPCODE 218 Arithmetic Operator Error
ERROR_UNIKEY_AR_VALUE_OVERFLOW 221 Const Number > 63
ERROR_UNIKEY_AR_WRONG_BEGIN 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_CALCULATE 211 Calculate Failed
ERROR_UNIKEY_COMPARE_TIME_MODULE 233 The Specific Time Is Before The Module's Start Time
ERROR_UNIKEY_DECRYPT_FAILED 229 Decrypt Data Failed
ERROR_UNIKEY_ENCRYPT_FAILED 228 Encrypt Data Failed
ERROR_UNIKEY_FILE_LOCK_CLOSE 261 close lock file error
ERROR_UNIKEY_FILE_LOCK_OPEN 260 open lock file error
ERROR_UNIKEY_FS_ERR_OPEN_FILE 247 Can't Open File
ERROR_UNIKEY_FS_ERR_SYS_UNINIT 246 File Sys Is Not Initialized
ERROR_UNIKEY_FS_FILE_EXIST 245 File Already Existed
ERROR_UNIKEY_FS_FILE_NAME 240 Wrong Or Invalid File Name
ERROR_UNIKEY_FS_FILE_OFFSET 242 Offset Of File Error
ERROR_UNIKEY_FS_NO_FILE 241 No Such File Name
ERROR_UNIKEY_FS_NO_MEMORY 244 Not Enough Free Memory
ERROR_UNIKEY_FS_UNKONW 243 Unknown Error
ERROR_UNIKEY_GENERATE_NEW_PASSWORD 225 Generate New Password Failed
ERROR_UNIKEY_GET_TYPE 256 Failed to get type of dongle.
ERROR_UNIKEY_INVALID_ADDR_OR_SIZE 204 Read/Write Address Or Length Is Wrong
ERROR_UNIKEY_INVALID_KEY 222 The Key In The Key Storage Is Wrong
ERROR_UNIKEY_INVALID_KEY_STORE 224 Wrong Key Storage Number
ERROR_UNIKEY_INVALID_PASSWORD 201 Found UniKey Dongle, But Basic Password Is Wrong
ERROR_UNIKEY_INVALID_PASSWORD_OR_ID 202 Wrong Password Or UniKey HID
ERROR_UNIKEY_KEY_INDEX 239 Dongle Over Keyindex, No Key To Delete
ERROR_UNIKEY_LOGOUT 251 Logout error?
ERROR_UNIKEY_MAX_KEYS 238 Dongle Already Max Keys, Need To Delete And The Regenerate
ERROR_UNIKEY_MAX_USERS 237 Dongle Already Max Users Logoned
ERROR_UNIKEY_MODULE 216 License Module Error
ERROR_UNIKEY_NEED_FIND 215 No Find Before FindNext
ERROR_UNIKEY_NEED_OPEN 212 Need Open Dongle Before Operating Dongle
ERROR_UNIKEY_NOMORE 214 No More Dongle
ERROR_UNIKEY_NOTBELEVEL3 206 Internal Error
ERROR_UNIKEY_NOT_FOUND 200 No UniKey Dongle
ERROR_UNIKEY_NO_ENCYYPT 248 No Secure Drive
ERROR_UNIKEY_OPEN_OVERFLOW 213 Too Many Open Dongles (>16)
ERROR_UNIKEY_PARAMETER 254 Some parameter is wrong.
ERROR_UNIKEY_PASSWORD 249 Password Error
ERROR_UNIKEY_RANDOM 209 Random Number Failed
ERROR_UNIKEY_READ_MEMORY 207 Read Memory Failed
ERROR_UNIKEY_READ_TIME 230 Get UniKey Time Failed
ERROR_UNIKEY_READ_UPDATETAG 226 Read UpdateTag Failed
ERROR_UNIKEY_SEED 210 Get Seed Code Failed
ERROR_UNIKEY_SET_SOFTID_FAILED 203 Set UniKey ID Failed
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_TOO_MUCH_THREAD 255 Too many (>100) threads in the single process open the dongle
ERROR_UNIKEY_UNKNOW 252 Unknown error
ERROR_UNIKEY_UNKNOWN_COMMAND 205 No Such Command
ERROR_UNIKEY_USERLOCK 250 User Has Been Locked
ERROR_UNIKEY_VERIFY_ADV_PASSWORD 223 Advanced Passwords (Password3 and Passowrd4) Not Verified
ERROR_UNIKEY_WRITE_ARITHMETIC 253 Dongle Write Arithmetic is ERROR
ERROR_UNIKEY_WRITE_MEMORY 208 Write Memory Failed
ERROR_UNIKEY_WRITE_TIME 231 Set UniKey Time Failed
ERROR_UNIKEY_WRITE_TIME_MODULE 232 Write Time Module Error
ERROR_UNIKEY_WRITE_UPDATETAG 227 Write UpdateTag Failed
SUCCESS 0 Success

NetUniKey Error Codes

Constant Value Description
NET_UNIKEY_AREADY_START 111 The Server Has Already Started
NET_UNIKEY_CLIENT_EXSIT 106 The Client Already Exists, Per This Mode
NET_UNIKEY_DISCARD_BY_SERVER 118 The Client Is Discarded By The Server
NET_UNIKEY_ERROR_BASE 100 NetUniKey Error Base
NET_UNIKEY_INIFILE_NOT_EXISTS 120 ZhaoHJ: 2015-08-13, INI file not exists
NET_UNIKEY_IN_BLACKLIST 108 The Client Is In The Black List
NET_UNIKEY_MEMORY_ERROR 101 Memory Allocation Error
NET_UNIKEY_MESSAGE_CHANGE 110 The Message Packet Was Changed
NET_UNIKEY_MESSAGE_WRONG 104 Communication Message Is Modified
NET_UNIKEY_NOT_WORKING 117
Cannot Connect Remote Netunikey Server
NET_UNIKEY_OUT_WHITELIST 109 The Client Is Not In The White List
NET_UNIKEY_RECEIVE_ERROR 103 Receive Error
NET_UNIKEY_SEND_ERROR 102 Send Error
NET_UNIKEY_SERVER_RESOURCE_INADEQUACY 119 by lzm
NET_UNIKEY_SETUP_SOCKET_ERROR 105 Setup Socket Error
NET_UNIKEY_SOCKET_BIND_FAILED 113 Cannot Bind The Port With The Socket
NET_UNIKEY_SOCKET_INIT_FAILED 112 Cannot Initialize The Socket
NET_UNIKEY_SOCKET_LISTEN_FAILED 114 Cannot Start Listening With The Socket
NET_UNIKEY_START_UDP_SERVER_FAILED 115 Start Udp Server Failed
NET_UNIKEY_TOO_LONG_MESSAGE 116 Too Long Message
NET_UNIKEY_TOO_MANY_CLIENT 107 The Number Of Client Reach The Limitation

Functions

Constant Value Description
NET_UNIKEY_GET_NUM_CLIENT 226 get the number of client for netunikey
NET_UNIKEY_SET_NUM_CLIENT 225 set the number of client for netunikey
UNIKEY_CALCULATE1 14 Calculate 1
UNIKEY_CALCULATE2 15 Calculate 2
UNIKEY_CALCULATE3 16
UNIKEY_CHECK_MODULE 12 Check Module
UNIKEY_DECRYPT 21 Decrypt the Buffer with a Specific Key
UNIKEY_ENCRYPT 20 Encrypt the Buffer with a Specific Key
UNIKEY_FIND 1 Find UniKey
UNIKEY_FIND_NEXT 2 Find next UniKey
UNIKEY_GENERATE_KEY 19 Generate a New Key in specific Key Store
UNIKEY_GET_MODULE 25 Get Module. p1 [in] Number [p3] out Value
UNIKEY_GET_TYPE 100 get the Unikey type
UNIKEY_LOCK 41 Lock
UNIKEY_LOGOFF 4 Close UniKey
UNIKEY_LOGON 3 Open UniKey
UNIKEY_MD5 22 Make an MD5 Digest for a Certain Content
UNIKEY_MODULE_DECREASE 17 Decrease Module Unit
UNIKEY_RANDOM 7 Generate Random Number
UNIKEY_READ_MEMORY 5 Read UniKey
UNIKEY_READ_SOFTID 10 Read Software ID
UNIKEY_READ_UPDATETAG 23 Read UpdateTag from a Specific Key
UNIKEY_SEED 8 Generate Seed Code
UNIKEY_SET_KEY 222
UNIKEY_SET_MODULE 11 Set Module
UNIKEY_SET_NEW_PASSWORD 18 Set New Password via a New Seed
UNIKEY_UNLOCK 42 Unlock
UNIKEY_WRITE_ARITHMETIC 13 Write Arithmetic
UNIKEY_WRITE_MEMORY 6 Write UniKey
UNIKEY_WRITE_SOFTID 9 Write Software ID
UNIKEY_WRITE_UPDATETAG 24 Write UpdateTag to a Specific Key
UNKEY_GET_CLI_NUM 101 Get client number now.
UNKEY_GET_MAX_NUM 226 Get Max number.

Real Time Clock Functions

Constant Value Description
UNIKEY_CHECK_TIME_MODULE 35 check if a time >START_TIME and the time < END_TIME(or START_TIME+DURATION) (p1,p2,p3,p4 = year,month,day,hour)
UNIKEY_CHECK_TIME_MODULE_NOW 36 check if now >START_TIME and now < END_TIME(or START_TIME+DURATION) use dongle time (lp1 = module index)
UNIKEY_CHECK_TIME_MODULE_NOW_PC 37 check if now >START_TIME and now < END_TIME(or START_TIME+DURATION) use host time (lp1 = module index)
UNIKEY_ERASE_TIME_MODULE 29 ERASE TIME MODULE to NULL. (lp1 = module index)
UNIKEY_GET_MODULE_END_TIME 39 get module end time (lp1 = module index)
UNIKEY_GET_MODULE_START_TIME 38 get module start time (lp1 = module index)
UNIKEY_GET_TIME 26 read rtc time (lp1,lp2,p1,p2,p3,p4 = year,month,day,hour,minute,second)
UNIKEY_SET_TIME 27 write rtc time (lp1,lp2,p1,p2,p3,p4 = year,month,day,hour,minute,second)
UNIKEY_SET_TIME_MODULE_DURATION 34 write rtc time module duration (lp2,p1 = day,hour)=24*day+hour
UNIKEY_SET_TIME_MODULE_END_TIME 33 write rtc time module end time (p1,p2,p3,p4 = year,month,day,hour)
UNIKEY_SET_TIME_MODULE_START_TIME 30 write rtc time module start time(p1,p2,p3,p4 = year,month,day,hour)
UNIKEY_SET_TIME_MODULE_START_TIME_NOW 31 write rtc time module start time use dongle time (lp1 = module index)
UNIKEY_SET_TIME_MODULE_START_TIME_NOW_PC 32 write rtc time module start time use host time (lp1 = module index)
UNIKEY_SET_TIME_NOW 28 write rtc time use host time (lp1 = module index)

Types

Constant Value Description
UNIKEY_TYPE_PRO 102 Pro Unikey
UNIKEY_TYPE_STD 103 Standard Unikey
UNIKEY_TYPE_TIME 101 Time Unikey

💬 Ask a question or report a problem