Unitech PA500 manual Unregister the application from the USI.DLL, Enable / Disable Scanner

Page 8

"CHECKPARITY"="1"

2.2.Unregister the application from the USI.DLL

Function Description: Unregister the application from the DLL. It will close the scanner port, and by default it will disable the scanner.

Function call: void USI_Unregister();

Return code: None

2.3.Enable / Disable Scanner

Function Description: To start or stop USI function. This function is useful for application to temporarily stop scanner function if it is only need keypad input or keep clear input buffer.

Function call: BOOL USI_EnableScan(BOOL bStatus);

Parameter: (input)

bStatus:

TRUE

 

: Enable Scanner

 

FALSE

: Disable Scanner

Return code: BOOL :

TRUE

: OK

 

 

FALSE : Failure

2.4.Reset Scanner

Function Description: Set the scanner to the working mode, and reset the communication control.

Function call:

BOOL USI_Reset();

Return:

Always TRUE

2.5.Get error code

Function Description: Returns the error code (SERR_***).

Function call:

DWORD USI_GetError();

Return:

Returns the error code (SERR_***), which has been described in

 

USI_Register function.

2.6.Returns the system error code

Function Description: Returns the system error code, which is returned by GetLastError. It will also return the description of the error in buffer if it is not NULL.

Function call: DWORD USI_GetLastSysError(LPTSTR buffer, int len);

Return:Returns the system error code, which is returned by system function GetLastError. It will also return the description of the error in buffer retrieved by system function FormatMessage if it is not NULL.

For a complete list of error codes, refer to the SDK header file WINERROR.H.

- 8

Image 8
Contents PA500 Programming Manual Automatically enable scanner beam with pressing trigger key USI.DLL Unitech Scanner Interface DLLSCANKEY3.DLL Backward Compatible API for PT930/PT930S’S GET Device ID Update Notes Introduction How to download data from scanner COM definition for PA500 Function call Parameter inputEnable / Disable Scanner Reset ScannerGet error code Returns the system error codeParameter output Get scan dataFunction Description Get Symbology name Get length of scanned dataGood read indicator Wait for acknowledgement of the last sent commandSave setting to profiles Clear scan data system bufferSave scanner setting into specified file Change scanner setting from specified setting profileAutomatically enable scanner beam with pressing trigger key Parameter output ReturnCheck if auto scanning is enable Test if Scan2Key is enabledStop auto scanning function Check if Scan2Key.exe program is running or notEnable/Disable Scan2Key Send scanner command to decoding chipOnly send single command decoding chip Esc, 0x80+cmd Function callSend command to decoding chip Esc, parameter1, parameter2, …, BCCSpecial Command for control Control command for decoder chipEnable in Communication TRACK1,5 TRACK2,6 TRACK3 Code32setCodabarset LabelcodeUpcaset UpcesetUPC a Disable Decoder PTEnableBarcode Function callCheck barcode input Return codeGet DLL version no Reset all symbologies to defaultRead barcode data Disable laser trigger key Enable laser trigger keyPTEnableBarToKey Function call for VC INT PTVersionvoid Return IntegerSysIOAPI.DLL Keypad Related FunctionsReturn code Bool True Caps lock False Caps unlock Return code True Shift lock False Shift unlockScanner Related Functions ParameterInputLED related function ExampleLCD/Backlight related function ParametersInputDynamic Load DLL Get Device ID Update notes
Related manuals
Manual 84 pages 14.34 Kb