background image

 

Programming Manual 

                                                                                           36 

 

WL_Disable 

This function disable WLAN power. 

BOOL WL_Disable 

}

 

 

Parameters 

 

 

None. 

 

Return Values 

If function succeeds, the return value is TRUE. If function fails, the return value is 

FALSE. 

 

 

 

Example 

DWORD dwResult; 

 

dwResult = WL_Disable(); 

 

if(dwResult == 0) 

 

 

AfxMessageBox(_T("Close wireless device fail")); 

 

Requirements 

 

 

OS Versions:

 Windows CE 5.0 and later. 

 

 

Header: 

sysapiax.h

 

 

 

Link Library: 

sysapiax.lib

 

Link DLL:

 sysapiax.dll 

Device: 

PA60

 

Summary of Contents for PA-60

Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...

Page 2: ...ightStatus 14 PowerOnLCD 15 SetBacklightPWM 16 EnableTouchPanel 17 GetTouchPanelStatus 18 KEYPADRELA TEDFUNCTIONS 19 EnablePowerButton 19 GetKeypadAlphaMode 20 SendKbdVisualKey 21 SetKeypadAlphaMode 22 LEDRELATEDFUNCTIONS 23 GetKeypadLEDStatus 23 GoodReadLEDOn 24 KeypadLEDOn 25 SYSTEMRELATEDFUNCTIONS 26 CallSuspend 26 EnableAutoConnect 27 RegisterAlphaKeyNotification 28 ShowChineseIME 29 ShowDeskt...

Page 3: ...etFTPService 45 GetFTPService 46 SetFTPWriteable 47 GetFTPWriteable 48 SetFTPShareFolder 49 GetFTPShareFolder 50 InitSearchBTDevice 52 FindNextBTDevice 54 EndSearchBTDevice 56 InitSearchFTPDevice 57 FindFirstFTPDevice 58 FindNextFTPDevice 60 PairDevice 62 UnPairDevice 63 GetComInfo 64 ConnectDevice 66 GetConnectStatus 67 GetSPPClientChannel 69 FindFirstFTPFile 70 FindNextFTPFile 71 GetFTPFile 72 P...

Page 4: ...set 92 API_ResetBarData 93 API_SaveSettingsToFile 94 API_SaveSettingsToScanner 95 S2K_IsLoad 96 S2K_Load 97 SCAN_QueryStatus 98 SCAN_SendCommand 99 SCAN_ResumeSystem 100 SCAN_BatchSetting 101 SCAN_BatchRead 102 GetScannerDevice 103 SCAN_EnablePowerOnAlert 104 SCAN_GetPowerOnAlert 105 SCAN_BatchSetting_V1 106 SCAN_BatchRead_V1 107 SCAN2KEYRELATEDFUNCTIONS 108 PT_OpenScan2Key 108 PT_CloseScan2Key 10...

Page 5: ...PT_GetBarcodeData 114 PT_SetDefault 116 SCANKEYRELATEDFUNCTIONS 117 EnableTriggerKey 117 GetLibraryV ersion 118 GetTriggerKeyStatus 119 PressTriggerKey 120 TriggerKeyStatus 121 SCANCOMMANDTABLE 122 FUNCTIONRETURNV ALUES 134 ...

Page 6: ...m related and the other one is the value added scanning functions providing the following information Argox Mobile Computer standard Application Programming Interface API Definitions for system related Audio Display Keypad Led and Vibrator Indicators Battery Status System Settings Argox Scanning device Application Programming Interface API Definitions API definitions illustrate how to call a given...

Page 7: ...to explain Example 1 Using LIB file At first you should include sysapiax lib in your project include Sysapiax h main SetBacklightPWM 100 100 Example 2 Using DLL file HINSTANCE dllHandle NULL typedef DWORD _stdcall pfnSetBacklightPWM int nACPowerPercent int nBatteryPercent pfnSetBacklightPWM m_SetBacklightPWM main dllHandle LoadLibrary L SYSAPIAX dll m_SetBacklightPWM pfnSetBacklightPWM GetProcAddr...

Page 8: ...ty Query backlight intensity GetBacklightStatus Gets screen backlight status PowerOnLCD Turn on or off LCD power SetBacklightPWM Adjusts screen backlight brightness EnableTouchPanel Enable and disable touch panel GetTouchPanelStatus Query touch panel status KeyPad Related Functions EnablePowerButton Enable and disable power button GetAlphaMode Get the current input mode SendKbdVisualKey Sends a vi...

Page 9: ...iscoverMode Query terminal discoverable status SetSPPService Enable Disable SPP Service GetSPPService Query SPP Service SetFTPService Enable Disable FTP service GetFTPService Query FTP service status SetFTPWriteable Enable Disable FTP service writeable GetFTPWriteable Query FTP service writeable status SetFTPShareFolder Setup the FTP share folder in terminal GetFTPShareFolder Query current FTP sha...

Page 10: ...cted device GetFTPFile Get file from share folder in the connected device PutFTPFile Send file to share folder in the connected device CreateFTPFolder Create a new folder to share folder in the connected device DeleteFTPFolder Delete folder from share folder in connected device DeleteFTPFile Delete file from share folder in connected device Bluetooth Structure CONNECT_INFO Structure CONNECT_INFO I...

Page 11: ...ucceeds the return value is E_FUNC_SUCCEED If function fails the return value is E_FUNC_ERROR Example DWORD dwResult dwVolume dwResult Audio_GetVolume dwVolume if dwResult E_FUNC_SUCCEED AfxMessageBox _T Audio_GetVolume fail else CString strTemp strTemp Format _T Volume d dwVolume AfxMessageBox strTemp Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Li...

Page 12: ...9999 Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails the return value is E_FUNC_ERROR Example DWORD dwResult dwVolume dwVolume 0x11111111 dwResult Audio_SetVolume dwVolume if dwResult E_FUNC_SUCCEED AfxMessageBox _T Audio_SetVolume fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device ...

Page 13: ...e return value can be one of the values in the following table Return value Description 0 battery high 1 battery low 2 battery critical 3 battery charging 4 no battery 5 battery unknown Example switch GetBatteryStatus case 0 AfxMessageBox _T Battery High break case 1 AfxMessageBox _T Battery Low break case 2 AfxMessageBox _T Battery Critical break case 3 ...

Page 14: ...T Battery Charging break case 4 AfxMessageBox _T No Battery break case 5 AfxMessageBox _T Battery Unknown break Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 15: ..._FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks After this function turn on or off backlight the backlight will always on or off The backlight setting of display properties in control panel does not work until terminal resets Example DWORD dwResult dwResult BacklightOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T BacklightOn fail Requirements OS ...

Page 16: ... Parameters lpdwACBacklight out The backlight intensity of external power lpdwBatteryBacklight out The backlight intensity of battery power Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_NULLPTR Remarks The parameters will be one of the values in the following table Backlight intensity Backlight brightness 4 sup...

Page 17: ...lt E_FUNC_SUCCEED AfxMessageBox _T Display_QueryBacklightIntensity fail else CString strTemp strTemp Format _T AC backlight intensity d Battery backlight intensity d dwValue1 dwValue2 AfxMessageBox strTemp Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 18: ...icates whether screen backlight is 1 screen backlight on or screen backlight is 0 screen backlight off Example DWORD dwResult dwResult GetBacklightStatus if dwResult 1 AfxMessageBox _T Backlight on else AfxMessageBox _T Backlight off Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 19: ... After calling this function with bOn is FALSE terminal will only turn off LCD power It means that terminal still works You should call this function to turn on LCD power or reset terminal Example DWORD dwResult dwResult PowerOnLCD FALSE power off LCD if dwResult E_FUNC_SUCCEED AfxMessageBox _T PowerOnLCD fail Sleep 3000 dwResult PowerOnLCD TRUE power on LCD if dwResult E_FUNC_SUCCEED AfxMessageBo...

Page 20: ...ues If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks The Backlight Setting program in Control Panel sets screen backlight brightness Called this function will also change the brightness in Backlight Setting You can use this function or Backlight Setting program in Control Panel to adjust backlight brightness E...

Page 21: ...e touch panel Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Example DWORD dwResult EnableTouchPanel 0 if dwResult E_FUNC_SUCCEED AfxMessageBox _T EnableTouchPanel fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 22: ...tion succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR Example BOOL bStatus DWORD dwResult GetTouchPanelStatus bStatus if dwResult E_FUNC_SUCCEED AfxMessageBox _T EnableTouchPanel fail if bStatus else Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 23: ...PAR_ERROR Remarks If the bOn parameter is FALSE power button is disabled The power button will not work when power button pressed If terminal enters suspend mode the power button will work once to wake up When terminal wakes up the power button is still disabled Until this function calls with parameter TRUE to enable power button Example DWORD dwResult dwResult EnablePowerButton FALSE if dwResult ...

Page 24: ...lue Alpha mode 0 numeric mode 1 lowercase letter mode 2 uppercase lette mode Example DWORD dwResult dwResult GetKeypadAlphaMode switch dwResult case 0 AfxMessageBox _T Numeric mode break case 1 AfxMessageBox _T Lowercase letter mode break case 2 AfxMessageBox _T Uppercase letter mode break Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapi...

Page 25: ...If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Example CString strTemp strTemp VisualKey for int i 0 i strTemp GetLength i SendKbdVisualKey unsigned char strTemp GetAt i Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 26: ... mode 1 lowercase letter mode 2 uppercase letter mode Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Example DWORD dwResult dwResult SetKeypadAlphaMode 1 if dwResult E_FUNC_SUCCEED AfxMessageBox _T SetKeypadAlphaMode fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library ...

Page 27: ...e return value indicates whether keypad LED is on TRUE or keypad LED is off FALSE Example BOOL bResult bResult GetKeypadLEDStatus if bResult TRUE AfxMessageBox _T Keypad LED on else if bResult FALSE AfxMessageBox _T Keypad LED off Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 28: ...ead LED FALSE Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are E_FUNC_ERROR E_FUNC_PAR_ERROR Example DWORD dwResult dwResult GoodReadLEDOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T GoodReadLEDOn fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 29: ...FUNC_PAR_ERROR Remarks The KeyPad LED setting in Control Panel is used to set the Keypad LED operation to meet requirements Called this function will change the KeyPad LED setting to always on or off You can use this function or KeyPad LED setting in Control Panel to always turn on or off keypad LED Example DWORD dwResult dwResult KeypadLEDOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T Keypad...

Page 30: ...alled this function terminal will enter suspend mode void CallSuspend Parameters None Return Values None Example suspend device CallSuspend Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 31: ...s successful otherwise FALSE Remarks After called EnableAutoConnect with bEnable set to TRUE terminal will automatically execute ActiveSync program when user plug cable into terminal After called EnableAutoConnect with bEnable set to FALSE terminal will not automatically execute ActiveSync program when user plug cable into terminal Example BOOL bResult bResult EnableAutoConnect TRUE if bResult FAL...

Page 32: ...ceive the message uMsg in The message value that is to be sent when alpha key pressed Return Values Return 0 if the operation is successful otherwise return 1 Remarks The application should call UnregisterAlphaKeyNotification function to unregister message from the dll Example if RegisterAlphaKeyNotification this m_hWnd WM_USER 0x0001 AfxMessageBox _T RegisterAlphaKeyNotification FAIL Requirements...

Page 33: ...se IME FALSE Return Values Return TRUE if the operation is successful otherwise FALSE Remarks The Chinese IME only support in Chinese OS It will work after call this function and reset terminal Example BOOL bResult bResult ShowChineseIME TRUE if bResult FALSE AfxMessageBox _T ShowChineseIME fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL ...

Page 34: ...n is successful otherwise FALSE Remarks After called this function with parameter FALSE terminal will hide all icons on desktop After called this function with parameter TRUE terminal will display all icons which had already showed on desktop Example BOOL bResult bResult ShowDesktop TRUE if bResult FALSE AfxMessageBox _T ShowDesktop fail Requirements OS Versions Windows CE 5 0 and later Header sys...

Page 35: ... hide the toolbar on windows explore FALSE Return Values Return TRUE if the operation is successful otherwise FALSE Remarks The ShowExploreToolbar function only effect the windows explorers that opened already Example BOOL bResult bResult ShowExploreToolbar TRUE if bResult FALSE AfxMessageBox _T ShowExploreToolbar fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Librar...

Page 36: ...RUE if the operation is successful otherwise FALSE Remarks After called this function terminal will display or hide taskbar If taskbar is hide by this function it need to call this function to display taskbar again Example BOOL bResult bResult ShowTaskbar TRUE if bResult FALSE AfxMessageBox _T ShowTaskbar fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapia...

Page 37: ...terAlphaKeyNotification HANDLE hWnd Parameters hWnd in The window handle of the application Return Values Return 0 if the operation is successful otherwise return 1 Example if UnregisterAlphaKeyNotification this m_hWnd AfxMessageBox _T UnregisterAlphaKeyNotification FAIL Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 38: ..._FUNC_SUCCEED If function fails possible return value is E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks You can use this function to vibrate the terminal to indicate operator that some thing happened Called this function will not change the Scanner Vibrator setting Example DWORD dwResult dwResult VibratorOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T VibratorOn fail Requirements OS Versions Windows CE...

Page 39: ...rn Values If function succeeds the return value is TRUE If function fails the return value is FALSE Example DWORD dwResult dwResult WL_Enable if dwResult 0 AfxMessageBox _T Open wireless device fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 40: ... function succeeds the return value is TRUE If function fails the return value is FALSE Example DWORD dwResult dwResult WL_Disable if dwResult 0 AfxMessageBox _T Close wireless device fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 41: ...ters None Return Values If function succeeds the return value is TRUE If function fails the return value is FALSE Example DWORD dwResult dwResult BT_Enable if dwResult 0 AfxMessageBox _T Open Bluetooth fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 42: ...urn Values If function succeeds the return value is TRUE If function fails the return value is FALSE Example DWORD dwResult dwResult BT_Disable if dwResult 0 AfxMessageBox _T Close Bluetooth fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 43: ...returned value is E_FUNC_SUCCEED If the action fails possible returned values are BT_ERR_CREATE_FAIL BT_ERR_INUSING Example BOOL bResult bResult BT_On if bResult E_FUNC_SUCCEED AfxMessageBox _T Bluetooth enable fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 44: ... DISABLE the Bluetooth function and power void BT_Off Parameters None Returned Values None Example BT_Off Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 45: ...isable FALSE the terminal discovered mode Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned value is BT_ERR_SETTING_FAIL Example If SetDiscoverMode TRUE E_FUNC_SUCCEED AfxMessageBox Setting fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 46: ...rned Values Return TRUE if terminal can be discovered otherwise return FALSE Example if GetDiscoverMode AfxMessageBox _T Discover mode is enable Else AfxMessageBox _T Discover mode is disable Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 47: ...rial port profile service mode Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are BT_ERR_SETTING_FAIL BT_ERR_REG_DEV_FAIL BT_ERR_SPP_COM_FAIL Example If SetSPPService TRUE E_FUNC_SUCCEED AfxMessageBox Setting fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax ...

Page 48: ...rs None Returned Values Return TRUE if SPP service is enable otherwise return FALSE Example if GetSPPService AfxMessageBox _T SPP service is enable Else AfxMessageBox _T SPP service is disable Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 49: ...SE the File Transfer Profile service mode Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are BT_ERR_SETTING_FAIL Example if SetFTPService TRUE E_FUNC_SUCCEED AfxMessageBox _T Set FTP service fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 50: ...ers None Returned Values Return TRUE if FTP service is enable otherwise return FALSE Example if GetFTPService AfxMessageBox _T FTP service is enable Else AfxMessageBox _T FTP service is disable Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 51: ...tes whether to enable TRUE or disable FALSE the File Transfer Profile writeable mode Returned Values Return E_FUNC_SUCCEED if the operation is successful Example if SetFTPWriteable TRUE E_FUNC_SUCCEED AfxMessageBox _T Set FTP writeable fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 52: ... None Returned Values Return TRUE if FTP writeable is enable otherwise return FALSE Example if GetFTPWriteable AfxMessageBox _T FTP service is writeable else AfxMessageBox _T FTP service is diswriteable Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 53: ...e Transfer Profile Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned value is E_FUNC_PAR_ERROR Example if SetFTPShareFolder Temp E_FUNC_SUCCEED AfxMessageBox _T Set FTP Share Folder fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 54: ...are folder length Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_PAR_ERROR BT_ERR_INSUFFICIENT Remarks If function return BT_ERR_INSUFFICIENT nFolderLen will receive the share folder length of terminal Example WCHAR strFolder int nFolderLen 256 strFolder new WCHAR nMax DWORD dwErr GetFTPShareFolder strFolder nFold...

Page 55: ...Programming Manual 51 Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 56: ...fails possible returned values are E_FUNC_ERROR BT_ERR_DEVICE_ERROR Remarks Must call EndSearchBTDevice function frees the handle after calls to the InitSearchBTDevice and FindNextBTDevice function Example DWORD dwRe HANDLE hLookup ULONGLONG btAddress WCHAR szDeviceName 128 dwRe InitSearchBTDevice hLookup while dwRe E_FUNC_SUCCEED dwRe FindNextBTDevice hLookup szDeviceName btAddress 256 if dwRe BT...

Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 58: ...ger nNameLen in The szDeviceName buffer max size If terminal device name length nNameLen the szDeviceName buffer store data of nNameLen length Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_ERROR Remarks Must call EndSearchBTDevice function frees the handle after calls to the I...

Page 59: ...e dwRe E_FUNC_SUCCEED dwRe FindNextBTDevice hLookup szDeviceName btAddress 256 if dwRe BT_ERR_DEVICE_ERROR break wsprintf szAddress L 04X 08X GET_NAP btAddress GET_SAP btAddress EndSearchBTDevice hLookup Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 60: ...D If the action fails possible returned values are E_FUNC_ERROR BT_ERR_DEVICE_ERROR Example DWORD dwRe HANDLE hLookup ULONGLONG btAddress WCHAR szDeviceName 128 dwRe InitSearchBTDevice hLookup while dwRe E_FUNC_SUCCEED dwRe FindNextBTDevice hLookup szDeviceName btAddress 256 if dwRe BT_ERR_DEVICE_ERROR break EndSearchBTDevice hLookup Requirements OS Versions Windows CE 5 0 and later Header sysapia...

Page 61: ...sible returned values are E_FUNC_ERROR BT_ERR_DEVICE_ERROR Example DWORD dwPos dwRe WCHAR szDeviceName 128 ULONGLONG btAddress If InitSearchFTPDevice E_FUNC_SUCCEED dwRe FindFirstFTPDevice dwPos szDeviceName btAddress 256 while dwRe E_FUNC_SUCCEED FindNextFPTDevice dwPos szDeviceName btAddress 256 if dwRe E_FUNC_SUCCEED break Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link...

Page 62: ...e the device address of 64 bit unsigned integer nNameLen in The szDeviceName buffer max size If terminal device name length nNameLen the szDeviceName buffer store data of nNameLen length Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_ERROR Example define GET_NAP _bt_addr USHORT...

Page 63: ...e E_FUNC_SUCCEED FindNextFPTDevice dwPos szDeviceName btAddress 256 if dwRe E_FUNC_SUCCEED break wsprintf szAddress L 04X 08X GET_NAP btAddress GET_SAP btAddress Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 64: ...s of 64 bit unsigned integer nNameLen in The szDeviceName buffer max size If terminal device name length nNameLen the szDeviceName buffer store data of nNameLen length Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_ERROR Example define GET_NAP _bt_addr USHORT _bt_addr ULONGLONG...

Page 65: ...e E_FUNC_SUCCEED FindNextFPTDevice dwPos szDeviceName btAddress 256 if dwRe E_FUNC_SUCCEED break wsprintf szAddress L 04X 08X GET_NAP btAddress GET_SAP btAddress Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 66: ...he pin code for connection Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are BT_ERR_PAIR_FAIL BT_ERR_DEVICE_ERROR Example if PairDevice btAddress PinCode E_FUNC_SUCCEED AfxMessageBox _T Pair fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 67: ...dress for unpair Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned value is BT_ERR_DEVICE_ERROR Example PairDevice btAddress PinCode UnPairDevice btAddress Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 68: ...e nComValueLen receive current com value length Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned value is E_FUNC_ERROR BT_ERR_INSUFFICIENT Remarks If function return BT_ERR_INSUFFICIENT nComValueLen will receive the com value length of terminal Example WCHAR pComValue int nComSum 0 nComValueLen 10 pComValue new WCHAR nComValueLen DWO...

Page 69: ...Programming Manual 65 Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 70: ...e nConnect in Connect status 1 connect 0 disconnect Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_CHANNEL BT_ERR_REG_DEV_FAIL BT_ERR_DEVICE_ERROR Example if ConnectDevice btAddrecc Info 1 E_FUNC_SUCCEED ConnectDevice btAddress Info 0 Requirements OS Versions Windows CE 5 0 and later ...

Page 71: ... port profile must be four characters long Contains COM com identifier index for example COM7 If nConnectType parameter is 2 FTP pCom ben t to check nStatus out The device connect status Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned value is E_FUNC_PAR_ERROR Example GetConnectStatus btAddress 1 _T COM7 nStatus if nStatus AfxMessag...

Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 73: ...nnel out Receive queried channel Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR BT_ERR_DEVICE_ERROR Example if GetSPPClientChannel btAddress nChannel E_FUNC_SUCCEED AfxMessageBox _T Get channel fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapia...

Page 74: ...data structure Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT BT_ERR_FTP_DIR_FAIL BT_ERR_FTP_EMPTY_FILE Example FTP_FILE File DWORD dwErr FindFirstFTPFile _T File If dwErr E_FUNC_SUCCEED Do dwErr FindNextFTPFile File while dwErr E_FUNC_SUCCEED Requirements OS Versions Windows CE...

Page 75: ...the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT BT_ERR_FTP_EMPTY_FILE Example FTP_FILE File DWORD dwError FindFirstFTPFile _T File If dwErr E_FUNC_SUCCEED Do dwErr FindNextFTPFile File while dwErr E_FUNC_SUCCEED Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapi...

Page 76: ...turned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT Example if GetFTPFile _T record txt E_FUNC_SUCCEED AfxMessageBox _T Get file fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...

Page 77: ...target path in the connected device to save file Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT Example if PutFTPFie _T Temp record txt _T Collect E_FUNC_SUCCEED AfxMessageBox _T Put file fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link ...

Page 78: ...nected device Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT Example if CreateFTPFolder _T FTP Folder E_FUNC_SUCCEED AfxMessageBox _T Create folder fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax d...

Page 79: ...ed device Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT Example if DeleteFTPFolder _T FTP Folder E_FUNC_SUCCEED AfxMessageBox _T Delete folder fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll D...

Page 80: ...ce Returned Values If the action succeeds the returned value is E_FUNC_SUCCEED If the action fails possible returned values are E_FUNC_ERROR E_FUNC_PAR_ERROR BT_ERR_DEVICE_NOT_CONNECT Example if DeleteFTPFile _T FTP Folder record txt E_FUNC_SUCCEED AfxMessageBox _T Delete file fail Requirements OS Versions Windows CE 5 0 and later Header sysapiax h Link Library sysapiax lib Link DLL sysapiax dll D...

Page 81: ... strCom 6 Members nChannel The connect channel for Serial port profile nCannectType Connect profile type 1 Serial port profile 2 File transfer profile strCom The connect com for Serial port profile must be four characters long Contains COM com identifier index for example COM7 If nConnectType member is 2 FTP strCom ben t to check Structure Information Header sysapiax h Device PA60 ...

Page 82: ... int nFileType WCHAR strPath 260 WCHAR strFile 260 DWORD dwFileSize Members nFileType File object profile type 0 File 1 Folder strPath The file path strFile The file name It will be null if the object is a folder dwFileSize The file size in bytes It will be 0 if the object is a folder Structure Information Header sysapiax h Device PA60 ...

Page 83: ...AX 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 sca...

Page 84: ... Scanner related functions scan data will store in system buffer PT_EnableScanner Enable scanner to scan barcode PT_DiableScanner Disable scanner PT_CheckBarcodeData Check whether there is barcode data on system buffer PT_GetBarcodeData Get barcode data and type from system buffer PT_SetDeault Reset the scanner setting to default value Scan Key Related Functions EnableTriggerKey Enable and disable...

Page 85: ...ation must call API_Unregister to unregister from the dll and close scanner module after done with scanner The messages can be one of the followings SM_DATA_READY Indicates that scan data is successfully reading and ready to retrieve SM_ERROR_SYS Indicates a system error which is caused by calling system function Call API_GetSysError to get the system error code SM_ERROR_API Indicates an error Cal...

Page 86: ...cation from SCANAPIAX dll and close scanner module void API_Unregister Parameters None Return Values None Example API_Unregister Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 87: ...data uiLength in out buffer size uiBarType out barcode type Return Values Return 1 if the operation is successful otherwise return 0 Remarks If the buffer size is less than scan data function return 0 and the parameter uiLength return the size of the buffer to get barcode data Example if message SM_DATA_READY CString strBarData strBarType UINTuiSize uiType i char pBuf uiSize uiType 0 API_GetBarDat...

Page 88: ...YTE pBuf uiSize uiType strBarType Format _T d uiType for i 0 i strlen pBuf i strBarData pBuf i AfxMessageBox _T Type strBarType _T r nBarcode strBarData return 0 Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 89: ... uiType i uiLength char pBuf uiLength API_GetBarDataLength if uiLength 0 strData _T No Data else uiSize uiLength 1 pBuf char new char uiSize memset pBuf 0 uiSize API_GetBarData LPBYTE pBuf uiSize uiType for i 0 i strlen pBuf i strData pBuf i AfxMessageBox strData return 0 Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device P...

Page 90: ...r BC_CODE16K 117 Code 16k BC_EAN8 105 EAN8 BC_CHINAPOST 118 China Post BC_EAN13 106 EAN13 BC_RSS14 119 RSS 14 BC_INDUSTRIAL_25 107 Industrial 2 of 5 BC_RSS_LIMITED 120 RSS Limited BC_INTERLEAVED_25 108 Interleaved 2 of 5 BC_RSS_EXPANDED 121 RSS Expanded BC_STANDARD_25 109 Standard 2 of 5 BC_PHARMACODE39 122 Pharama code39 BC_MSI_PLESSEY 110 MSI Plessey BC_MICRO_PDF 123 Micro PDF BC_UK_PLESSEY 111 ...

Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 92: ...mands to scanner module failed ERR_SETTING_FAIL WM_USER 2 Set scanner setting failed ERR_SCANNER_NOT_OPEN WM_USER 3 Open scanner module failed ERR_INVALID_FILE WM_USER 4 Invalid setting file Example dwError API_GetError strMess Format _T API Error Code d dwError AfxMessageBox strMess Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax ...

Page 93: ...m error code that is returned by GetLastError The description of system error code can be find in MSDN Example dwError API_GetSysError strMess Format _T System Error Code d dwError AfxMessageBox strMess Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 94: ...Use API_GoodRead to indicate user barcode data is scanned The buzzer indication of scan module can be set by scan configuration program in control panel The LED indication of scan module can be set by SCAN_SendCommand function If buzzer and LED indication are disable the API_GoodRead will do nothing Example API_GoodRead Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Libr...

Page 95: ...essful otherwise return FALSE Example CString strFile CFileDialog dlg TRUE NULL NULL OFN_FILEMUSTEXIST OFN_PATHMUSTEXIST if dlg DoModal IDOK return strFile dlg GetPathName if theApp m_API_LoadSettingsFromFile strFile AfxMessageBox _T Load form file Succeed else AfxMessageBox _T Load from file Fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link ...

Page 96: ...None Return Values Return TRUE if the operation is successful otherwise return FALSE Example if API_Reset AfxMessageBox _T Reset Succeed else AfxMessageBox _T Reset Fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 97: ...ffer that the next new scan data can come in void API_ResetBarData Parameters None Return Values None Example API_ResetBarData Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 98: ... operation is successful otherwise return FALSE Example CString strFile CfileDialog dlg FALSE _T axs NULL OFN_CREATEPROMPT _T Scanner Settings Files axs axs if dlg DoModal IDOK return strFile dlg GetPathName if API_SaveSettingsToFile strFile AfxMessageBox _T Save to file Succeed else AfxMessageBox _T Save to file Fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Librar...

Page 99: ... None Return Values Return TRUE if the operation is successful otherwise return FALSE Example if API_SaveSettingsToScanner AfxMessageBox _T Save to Scanner Succeed else AfxMessageBox _T Save to Scannere Fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 100: ...lues The return value TRUE indicates that scan exe is running The return value FALSE indicates that scan exe is not running Example if S2K_IsLoad AfxMessageBox _T scan exe load else AfxMessageBox _T scan exe does not load Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 101: ...scan exe it will wait until the scan exe closed or timeout by this parameter Return Values Return TRUE if the operation is successful otherwise return FALSE Example if S2K_Load FALSE 1000 AfxMessageBox _T unload scan exe success else AfxMessageBox _T unload scan exe failed Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device ...

Page 102: ...ge than 100 Return Values Return TRUE if the operation is successful otherwise return FALSE Remarks The pReturn value is depending on nCommand1 and nCommand2 The nCommand1 and nCommand2 decide which scanner setting to be queried Example char pValue pValue char new char 100 memset pValue 0 100 query Buzzer indication setting SCAN_QueryStatus 5 3 pValue Requirements OS Versions Windows CE 5 0 and la...

Page 103: ...2 in See scan command table pValue in See scan command table Return Values Return TRUE if the operation is successful otherwise return FALSE Example Enable Buzzer indication setting if SCAN_SendCommand 5 3 1 AfxMessageBox _T Setup complete else AfxMessageBox _T Setup false Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device ...

Page 104: ... that is returned by GetLastError The description of system error code can be find in MSDN Example Enable scan key to resume system if SCAN_ResumeSystem 1 0 AfxMessageBox _T Enable scan key to resume system succeed else AfxMessageBox _T Enable scan key to resume system fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device...

Page 105: ...ode setting refer to scan command table Return Values Return FALSE if the operation is success otherwise return SM_ERROR_SYSTEM SM_ERROR_API Example ScannerSetting setting setting Code11 m_uiRead 1 setting Code39 m_uiRead 1 SCAN_BatchSetting setting Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 106: ...e scanner setting configure The barcode setting refer to scan command table Return Values Return FALSE if the operation is success ERR_SCANNER_NOT_OPEN if the scanner is not opened Example ScannerSetting setting SCAN_BatchRead setting Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 107: ...es Return FALSE if the scanner device is not ready 1 1D scanner engine 2 2D scan engine Example int nDevice nDevice GetScannerDevice If nDevice 1 1D scanner Else if nDevice 2 2D scanner Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 108: ... light when scanner power on Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails possible return value are ERR_SCANNER_NOT_OPEN E_FUNC_PAR_ERROR E_SCAN_SETTING_FAIL Example int nError nError SCAN_EnablePowerOnAlert TRUE If nError 0 Function succeed else Function fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib ...

Page 109: ...s Return FALSE if the scanner power on alert is disable 1 if the scanner power on alert is enable Example If SCAN_GetPowerOnAlert Scanner power on alert is enable else Scanner power on alert is disable Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 110: ...Return FALSE if the operation is success otherwise return SM_ERROR_SYSTEM SM_ERROR_API Remark It can setup more setting than SCAN_BatchSetting 7 1 Scanning mode 7 2 Standby duration 7 12 Stand mode Example ScannerSetting_V1 setting setting Code11 m_uiRead 1 setting Code39 m_uiRead 1 SCAN_BatchSetting_V1 setting Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scana...

Page 111: ...er to scan command table Return Values Return FALSE if the operation is success ERR_SCANNER_NOT_OPEN if the scanner is not opened Remark It can get more setting than SCAN_BatchRead 7 1 Scanning mode 7 2 Standby duration 7 12 Stand mode Example ScannerSetting_V1 setting SCAN_BatchRead_V1 setting Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL...

Page 112: ...PT_OpenScan2Key Parameters None Return Values Return TRUE if the operation is successful otherwise return FALSE Example BOOL bResult bResult PT_OpenScan2Key if bResult AfxMessageBox _T PT_OpenScan2Key fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 113: ...an2Key Close scan exe void PT_CloseScan2Key Parameters None Return Values None Example PT_CloseScan2Key Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 114: ...alue int PT_SetToDefault Parameters None Return Values Return 1 if the operation is successful otherwise return 0 Example if PT_SetToDefault AfxMessageBox _T PT_SetToDefault fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 115: ...ion call PT_GetBarcodeData to get scan data from system buffer int PT_EnableScanner Parameters None Return Values Return 0 if the operation is successful ERR_INVALID_SCANNER_VER if scanner firmare is invalid 1 if the operation is fail Example if PT_EnableScanner AfxMessageBox _T PT_EnableScanner fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Li...

Page 116: ...unction will close scanner module void PT_DisableScanner Parameters None Return Values None Example PT_DisableScanner Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 117: ...ere are barcode data in system buffer This function returns FALSE if there are no barcode data in system buffer Example if PT_CheckBarcodeData m_strScanData _T There are barcode data in system buffer else m_strScanData _T There are no barcode data in system buffer Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 118: ...size Return Values Return TRUE if the operation is successful otherwise return FALSE Remarks If the buffer size is less than scan data function return 0 and the parameter uiMaxBufferLen return the size of barcode data Example if PT_CheckBarcodeData if PT_GetBarcodeData uiBarType pBarData uiMaxLen for i 0 i strlen pBarData i m_strScanData pBarData i else m_strScanData _T Can t get scan data else m_...

Page 119: ...Programming Manual 115 Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 120: ... Return Values Return TRUE if the operation is successful otherwise return FALSE Example if PT_SetDefault AfxMessageBox _T PT_SetDefault succeed else AfxMessageBox _T PT_SetDefault fail Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 121: ...eturn value is E_FUNC_SUCCEED If function fails the return value is E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks This function is meaningful only if scanner is opened The warm reset will enable scan key automatically Example BOOL bResult bResult EnableTriggerKey TRUE if bResult AfxMessageBox _T EnableTriggerKey Succeed Else AfxMessageBox _T EnableTriggerKey Fail Requirements OS Versions Windows CE 5 0 an...

Page 122: ...rsion number If the return value is 101 it means that dll version is 1 01 Example int nVersion CString strTemp nVersion GetLibraryVersion strTemp Format _T Version d nVersion AfxMessageBox strTemp Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 123: ...he return value 1 indicates that scan key is enable The return value 0 indicates that scan key is disable Example if GetTriggerKeyStatus AfxMessageBox _T scan key ensable else AfxMessageBox _T scan key disable Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 124: ...scan key FALSE Return Values If function succeeds the return value is E_FUNC_SUCCEED If function fails the return value is E_FUNC_ERROR Remarks This function is meaningful only if scanner is opened Example PressTriggerKey TRUE Sleep 1000 PressTriggerKey FALSE Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 125: ...The return value 1 indicates that scan key is pressed The return value 0 indicates that scan key is released Example if TriggerKeyStatus AfxMessageBox _T scan key pressed else AfxMessageBox _T scan key release Requirements OS Versions Windows CE 5 0 and later Header scanapiax h Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...

Page 126: ...n 0 Disable 1 Enable 10 Code name transmission 0 Disable 1 Enable 6 Transmission 11 Case conversion 0 Disable 1 Upper case 2 Lower case 1 Scanning Mode 1 Momentary 4 Continue 2 Standby duration 0 99 default 6 4 Double confirm 0 9 default 0 6 Global min code length 0 64 default 4 7 Global max code length 0 64 default 63 8 Inverted image scan 0 Disable 1 Enable 7 Scan 12 Stand mode 1 0 LED ON 1 LED ...

Page 127: ...length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 10 Code 11 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default O 1 Read 0 Disable 1 Enable 2 Check sum verification 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 4 Max code length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 20 d...

Page 128: ...code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 12 Code 93 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default 1 Read 0 Disable 1 Enable 2 Check sum verification 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 4 Max code length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 1...

Page 129: ...ength 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default 10 Start stop type 0 ABCD ABCD 1 abcd abcd 2 ABCD TN E 3 abcd tn e 14 Codabar 11 Start stop transmission 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 6 Truncate leading 0 15 d...

Page 130: ...Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default F 10 Supplement digits 0 None 1 2 digits 2 5 digits 3 2 5 digits 4 UCC EAN 128 5 2 UCC EAN 128 6 5 UCC EAN 128 7 All 16 EAN 13 12 ISBN ISSN conversion 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 4 Max code lengt...

Page 131: ... 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 18 Interleaved 2 of 5 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default i 1 Read 0 Disable 1 Enable 2 Check sum verification 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 4 Max code length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0...

Page 132: ...ult 0 7 Truncate ending 0 15 default 0 20 MSI Plessey 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default 1 Read 0 Disable 1 Enable 2 Check sum verification 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 4 Max code length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 21 UK Plessey 8 Code ID setting 0x00 0x...

Page 133: ...2 bytes default S 10 Format 0 Numeric 1 Full ASCII 1 Read 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default A 10 Supplement digits 0 None 1 2 digits 2 5 digtis 3 2 5 digits 4 UCC EAN 128 5 2 UCC EAN 128 6 5 UCC EAN 128 7 All 23 UPCA 11 Truncate expansion 0 Non...

Page 134: ...4 UCC EAN 128 5 2 UCC EAN 128 6 5 UCC EAN 128 7 All 11 Truncate expansion 0 None 1 Truncate leading zero 2 Expand to EAN 13 3 Expand to UPCA 12 Expansion 0 Disable 1 Enable 13 UPCE 1 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 2 Check sum verification 0 Disable 1 Enable 3 Check sum transmission 0 Disable 1 Enable 4 Max code length 0 64 default 0 5 Min code length 0 64 default 0 6 Truncate leading...

Page 135: ...ble 1 Read 0 Disable 1 Enable 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 27 Code 16K 2D model only 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default NULL 1 Read 0 Disable 1 Enable 4 Max code length 0 64 default 11 5 Min code length 0 64 default 11 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 28 China post 8 Code ID setting 0x00 0xff ASCII cod...

Page 136: ...RSS Limited 11 UCC EAN 128 emulation 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 4 Max code length 0 99 default 99 5 Min code length 0 99 default 1 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default RX 31 RSS Expanded 11 UCC EAN 128 emulation 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 4 Max code length 0 64 default 12 5...

Page 137: ...odel only 10 Escape sequence transmit 0 None 1 GLI protocol 2 ECI protocol 1 Read 0 Disable 1 Enable 6 Truncate leading 0 15 default 0 7 Truncate ending 0 15 default 0 8 Code ID setting 0x00 0xff ASCII code 1 or 2 bytes default RC 34 EAN UCC composite 2D model only 11 UCC EAN 128 emulation 0 Disable 1 Enable 1 Stand mode Normally activated with continuous mode If set as LED Off the scanner red bea...

Page 138: ...allAPI_GetSysErrortogetsystemerrorcode SM_ERROR_API WM_APP 3 APIerror callAPI_GetError togetapierrorcode ERR_WRITE_FAIL WM_USER 1 Writedatatoscannerfail ERR_SETTING_FAIL WM_USER 2 Settingscannerconfigurefail ERR_SCANNER_NOT_OPEN WM_USER 3 Scannerdeviceisnotopen ERR_INV ALID_FILE WM_USER 4 Assignedfileisinvalid ERR_TIMEOUT WM_USER 5 Waitscannerrespondtimeout ERR_INV ALID_SCANNER_VER WM_USER 6 Inval...

Page 139: ...errejectconnectrequest BT_ERR_DIVICE_NOT_CONNECT 0x00001011 FTPservicedevicenotconnect BT_ERR_FTP_DIR_FAIL 0x00001012 Searchthedirectionfail BT_ERR_FTP_EMPTY_FILE 0x00001013 Nomorefiledata BT_ERR_CONNECTED 0x00001014 Thedevicehadconnected WM_USER 0x0400 WM_APP 0x8000 ...

Reviews: