Programming Manual
36
SCANAPIAX.DLL
We supply SCANAPIAX.DLL to allow programmer to control scan device status. There are
several functions for user to use. User can use WINCE develop tool which like Visual Studio 2005
to develop application program to control scanner.
In this library, there are three different ways to control scanner module. These are API_SCAN,
Scan2Key and Scanner related functinos. Each related function can be used to control scanner
module in different way. These three related functions can not be used at the same time. User
should decide a suitably way to develop application. The following shows functions description.
API_SCAN Related Functions
User use API_SCAN related functions to register application to SCANAPIAX.dll. API_SCAN
functions will send messages to report all activities, including error messages and scan data ready.
API_Register
– Register the application to SCANAPIAX.dll
API_Unregister
– Un-register the application from SCANAPIAX.dll
API_GetBarData
– Get barcode data into the buffer.
API_GetBarDataLength
– Return the scan data length.
API_GetBarType
– Return the barcode type.
API_GetError
– Get the error code.
API_GetSysError
– Return the system error code.
API_GoodRead
– Play sound and flash LED.
API_LoadSettingFromFile
– Loader scanner setting form file.
API_Reset
– Reset the scanner setting to default status.
API_ResetBarData
– Clear the data buffer that the next new scan data can come
in.
API_SaveSettingToFile
– Save current scanner setting to file.
API_SaveSettingsToScanner
– Write the current scanner setting into scanner.
S2K_IsLoad
– Check the scan.exe is running or not.
S2K_Load
– Load or unload the scan.exe.
SCAN_QueryStatus
– Query scanner setting.
SCAN_SendCommand
– Send scanner command to change scanner status.
SCAN_ResumeSystem
– Enable/Disable scan key to resume system.
SCAN_BatchSetting
– Setup scanner in batch command.
SCAN_BatchRead
– Read scanner setting in batch command.
GetScannerDevice
– Get scanner engine type.