![]() |
Standalone SDK API Doc
V1.0.4
|
Functions | |
VARIANT_BOOL | Connect_Net (BSTR IPAdd, LONG Portl) |
VARIANT_BOOL | Connect_Com (LONG ComPort, LONG MachineNumber, LONG BaudRate) |
VARIANT_BOOL | Connect_USB (LONG MachineNumber) |
Disconnect () | |
VARIANT_BOOL | IsTFTMachine (LONG dwMachineNumber) |
VARIANT_BOOL | GetDeviceStatus (LONG dwMachineNumber, LONG dwStatus, LONG *dwValue) |
VARIANT_BOOL | GetDeviceInfo (LONG dwMachineNumber, LONG dwInfo, LONG *dwValue) |
VARIANT_BOOL | SetDeviceInfo (LONG dwMachineNumber, LONG dwInfo, LONG dwValue) |
VARIANT_BOOL | SetDeviceTime (LONG dwMachineNumber) |
VARIANT_BOOL | SetDeviceTime2 (LONG dwMachineNumber, LONG dwYear, LONG dwMonth, LONG dwDay, LONG dwHour, LONG dwMinute, LONG dwSecond) |
VARIANT_BOOL | GetDeviceTime (LONG dwMachineNumber, LONG *dwYear, LONG *dwMonth, LONG *dwDay, LONG *dwHour, LONG *dwMinute, LONG *dwSecond) |
VARIANT_BOOL | GetSerialNumber (LONG dwMachineNumber, BSTR *dwSerialNumber) |
VARIANT_BOOL | GetProductCode (LONG dwMachineNumber, BSTR *lpszProductCode) |
VARIANT_BOOL | GetFirmwareVersion (LONG dwMachineNumber, BSTR *strVersion) |
VARIANT_BOOL | GetSDKVersion (BSTR *strVersion) |
VARIANT_BOOL | GetDeviceIP (LONG dwMachineNumber, BSTR *IPAddr) |
VARIANT_BOOL | SetDeviceIP (LONG dwMachineNumber, BSTR IPAddr) |
VARIANT_BOOL | GetDeviceMAC (LONG dwMachineNumber, BSTR *sMAC) |
VARIANT_BOOL | SetDeviceMAC (LONG dwMachineNumber, BSTR sMAC) |
VARIANT_BOOL | GetWiegandFmt (LONG dwMachineNumber, BSTR *sWiegandFmt) |
VARIANT_BOOL | SetWiegandFmt (LONG dwMachineNumber, BSTR sWiegandFmt) |
VARIANT_BOOL | GetCardFun (LONG dwMachineNumber, LONG *CardFun) |
VARIANT_BOOL | SetDeviceCommPwd (LONG dwMachineNumber, LONG CommKey) |
VARIANT_BOOL | SetCommPassword (LONG CommKey) |
VARIANT_BOOL | QueryState (LONG *State) |
VARIANT_BOOL | GetVendor (BSTR *strVendor) |
VARIANT_BOOL | GetDeviceStrInfo (LONG dwMachineNumber, LONG dwInfo, BSTR *Value) |
VARIANT_BOOL | GetPlatform (LONG dwMachineNumber, BSTR *Platform) |
VARIANT_BOOL Connect_Net | ( | BSTR | IPAdd, |
LONG | Portl | ||
) |
To connect to the machine to set up a network connection with the machine by using an IP address.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL Connect_Com | ( | LONG | ComPort, |
LONG | MachineNumber, | ||
LONG | BaudRate | ||
) |
To connect to the machine through a serial port, that is, the RS232 RS485 port.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL Connect_USB | ( | LONG | MachineNumber | ) |
To connect to the machine through a USB port.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
Disconnect | ( | ) |
To disconnect from the machine to release relevant resources.
None |
VARIANT_BOOL IsTFTMachine | ( | LONG | dwMachineNumber | ) |
To check whether the machine is a color-screen one.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceStatus | ( | LONG | dwMachineNumber, |
LONG | dwStatus, | ||
LONG * | dwValue | ||
) |
To query the data storage status on the machine, such as the number of administrators and number of users.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceInfo | ( | LONG | dwMachineNumber, |
LONG | dwInfo, | ||
LONG * | dwValue | ||
) |
To obtain machine information, such as the language and baud rate.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceInfo | ( | LONG | dwMachineNumber, |
LONG | dwInfo, | ||
LONG | dwValue | ||
) |
To set machine information, such as the language and duplicate record time.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceTime | ( | LONG | dwMachineNumber | ) |
To set the time of the machine to be the same as that of the local computer. To set specified time, see the description of SetDeviceTime2.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceTime2 | ( | LONG | dwMachineNumber, |
LONG | dwYear, | ||
LONG | dwMonth, | ||
LONG | dwDay, | ||
LONG | dwHour, | ||
LONG | dwMinute, | ||
LONG | dwSecond | ||
) |
To set the time of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceTime | ( | LONG | dwMachineNumber, |
LONG * | dwYear, | ||
LONG * | dwMonth, | ||
LONG * | dwDay, | ||
LONG * | dwHour, | ||
LONG * | dwMinute, | ||
LONG * | dwSecond | ||
) |
To query the time of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetSerialNumber | ( | LONG | dwMachineNumber, |
BSTR * | dwSerialNumber | ||
) |
To query the serial number of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetProductCode | ( | LONG | dwMachineNumber, |
BSTR * | lpszProductCode | ||
) |
To query the product code of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetFirmwareVersion | ( | LONG | dwMachineNumber, |
BSTR * | strVersion | ||
) |
To query the firmware version of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetSDKVersion | ( | BSTR * | strVersion | ) |
To query the SDK version.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceIP | ( | LONG | dwMachineNumber, |
BSTR * | IPAddr | ||
) |
To query the IP address of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceIP | ( | LONG | dwMachineNumber, |
BSTR | IPAddr | ||
) |
To set the IP address of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceMAC | ( | LONG | dwMachineNumber, |
BSTR * | sMAC | ||
) |
To query the MAC address of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceMAC | ( | LONG | dwMachineNumber, |
BSTR | sMAC | ||
) |
To set the MAC address of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetWiegandFmt | ( | LONG | dwMachineNumber, |
BSTR * | sWiegandFmt | ||
) |
To query the Wiegand format of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetWiegandFmt | ( | LONG | dwMachineNumber, |
BSTR | sWiegandFmt | ||
) |
To set the Wiegand format of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetCardFun | ( | LONG | dwMachineNumber, |
LONG * | CardFun | ||
) |
To query whether the machine supports the RF card.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetDeviceCommPwd | ( | LONG | dwMachineNumber, |
LONG | CommKey | ||
) |
To set the communication password of the machine, which will be saved on the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL SetCommPassword | ( | LONG | CommKey | ) |
To set the communication password of the PC. A connection can be set up between the machine and the PC only if their communication passwords are the same.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL QueryState | ( | LONG * | State | ) |
To query the current status of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetVendor | ( | BSTR * | strVendor | ) |
To query the manufacturer of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetDeviceStrInfo | ( | LONG | dwMachineNumber, |
LONG | dwInfo, | ||
BSTR * | Value | ||
) |
To query the delivery time of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |
VARIANT_BOOL GetPlatform | ( | LONG | dwMachineNumber, |
BSTR * | Platform | ||
) |
To query the platform of the machine.
Parameter description:
|
name | type | description of value |
---|---|---|
True | BOOL | Function execution success |
False | BOOL | Function execution failure |