-
5. ScanKey3.DLL – Backward compatible API for PT930/PT930S’s ScanKey3.dll
Note : For PA500, it need to dynamically load DLL for using Unitech built-in DLL (Unitech will not
provide “USI.H” and “USI.LIB” for compiler), please refer to Chapter 7 for programming guide.
5.1. Enable Decoder
Function Description: This function will open COM2 port, create a thread to get any barcode input from
Decoder Chip, and then send scanner data to keyboard buffer. User application
can get input data just like standard keyboard input.
Function call for VC: int PT_EnableBarToKey(VOID)
Return code: =1 Create new thread fail
=2 Can not re-enable
=3 Can not open COM2
=4 Upload parameter from Hamster fail
=0 OK
5.2. Disable Decoder
Function Description: This function will close COM2 port and then remove thread which is created by
PT_EnableBarToKey()
Function call for VC: VOID PT_DisableBarToKey ( VOID )
5.3. Get DLL version no
Function description: This function is used to get DLL version number.
Function call for VC: INT PT_Version(void);
Return : Integer
5.4. Disable laser trigger key
Function Description:
This function only stop trigger key to activate laser beam, so COM2 port is still
open. This function call is useful when some fields is only allow keyboard input..
Function call for VC:
int PT_StopScan (VOID)
5.5. Enable laser trigger key
Function Description: This function only stop trigger key to activate laser beam, so COM2 port is still
open. This function call is useful when some fields is only allow keyboard input..
Function call for VC: int PT_StartScan (VOID)
5.6. Reset all symbologies to default
Function Description: This function call will reset decoder chip's symbologies setting to system default
value
Function call for VC: int PT_ SetToDefault (VOID)
Function call for VB: PT_ SetToDefault