-
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.
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
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 )
Function description: This function is used to get DLL version number.
Function call for VC: INT PT_Version(void);
Return : Integer
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)
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)
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