background image

 

Programming Manual 

                                                                                           7 

Audio_SetVolume 

This function sets the current volume setting. 

DWORD Audio_SetVolume 

    DWORD 

dwVolume

 

}

 

 

Parameters 

 

 

dwVolume 

[in] Specifies a new volume setting. The default setting is 0x99999999. 

 

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: 

PT61

 

 

Summary of Contents for PT-61

Page 1: ...PT 61 Mobile Computer Programming Manual DOC NO UM PT605 02 July 2010 Version 1 0 2002 2010byARGOXInformationCo Ltd http www argox com ...

Page 2: ...ightStatus 13 PowerOnLCD 14 SetBacklightPWM 15 KEYPADRELA TEDFUNCTIONS 16 EnablePowerButton 16 GetKeypadAlphaMode 17 SendKbdVisualKey 18 SetKeypadAlphaMode 19 LEDRELA TEDFUNCTIONS 20 GetKeypadLEDStatus 20 GoodReadLEDOn 21 KeypadLEDOn 22 SYSTEMRELA TEDFUNCTIONS 23 CallSuspend 23 EnableAutoConnect 24 RegisterAlphaKeyNotification 25 ShowChineseIME 26 ShowDesktop 27 ShowExploreToolbar 28 ShowTaskbar 2...

Page 3: ...PI_GetSysError 46 API_GoodRead 47 API_LoadSettingsFromFile 48 API_Reset 49 API_ResetBarData 50 API_SaveSettingsToFile 51 API_SaveSettingsToScanner 52 S2K_IsLoad 53 S2K_Load 54 SCAN_QueryStatus 55 SCAN_SendCommand 56 SCAN_ResumeSystem 57 SCAN_BatchSetting 58 SCAN_BatchRead 59 SCAN2KEYRELA TEDFUNCTIONS 60 PT_OpenScan2Key 60 PT_CloseScan2Key 61 PT_SetToDefault 62 SCANNERRELA TEDFUNCTIONS 63 PT_Enable...

Page 4: ...Programming Manual IV SCANKEYRELA TEDFUNCTIONS 69 EnableTriggerKey 69 GetLibraryV ersion 70 GetTriggerKeyStatus 71 PressTriggerKey 72 TriggerKeyStatus 73 SCANCOMMANDTABLE 74 FUNCTIONRETURNV ALUES 82 ...

Page 5: ...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 6: ...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 7: ...lightIntensity Query backlight intensity GetBacklightStatus Gets screen backlight status PowerOnLCD Turn on or off LCD power SetBacklightPWM Adjusts screen backlight brightness KeyPad Related Functions EnablePowerButton Enable and disable power button GetAlphaMode Get the current input mode SendKbdVisualKey Sends a visual key to key buffer SetAlphaMode Change input mode LED Related Functions GetKe...

Page 8: ...e all icons on desktop ShowExploreToolbar Display and hide toolbar on windows explorer ShowTaskbar Display and hide taskbar UnregisterAlphaKeyNotification Unregister message request Vibrator Related Functions VibratorOn On and off vibration indicator ...

Page 9: ...succeeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails thereturnvalueis E_FUNC_ERROR Example DWORDdwResult dwV olume dwResult Audio_GetV olume dwV olume if dwResult E_FUNC_SUCCEED AfxMessageBox _T Audio_GetV olumefail else CStringstrTemp strTemp Format _T V olume d dwV olume AfxMessageBox strTemp Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysa...

Page 10: ...999999 ReturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails thereturnvalueis E_FUNC_ERROR Example DWORDdwResult dwV olume dwV olume 0x11111111 dwResult Audio_SetV olume dwV olume if dwResult E_FUNC_SUCCEED AfxMessageBox _T Audio_SetV olumefail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 11: ...aluecanbeoneofthevaluesinthefollowingtable Returnvalue Description 0 batteryhigh 1 batterylow 2 batterycritical 3 batterycharging 4 nobattery 5 batteryunknown Example switch GetBatteryStatus case0 AfxMessageBox _T BatteryHigh break case1 AfxMessageBox _T BatteryLow break case2 AfxMessageBox _T BatteryCritical break case3 AfxMessageBox _T BatteryCharging ...

Page 12: ...ual 9 break case4 AfxMessageBox _T NoBattery break case5 AfxMessageBox _T BatteryUnknown break Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 13: ...ueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks Afterthisfunctionturnonoroffbacklight thebacklightwillalwaysonoroff Thebacklightsettingofdisplay propertiesincontrolpaneldoesnotworkuntilterminalresets Example DWORDdwResult dwResult BacklightOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T BacklightOnfail Requirements OSV ersions WindowsCE5 0andlate...

Page 14: ...eturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_NULLPTR Remarks Theparameterswillbeoneofthevaluesinthefollowingtable Backlightintensity Backlightbrightness 4 super 3 normal 2 fine 1 micro 0 off Example DWORDdwResult dwV alue1 dwV alue2 dwResult Display_QueryBacklightIntensity dwV alue1 dwV alue2 if dwResult E_FUNC_SUCCEED Afx...

Page 15: ...Programming Manual 12 dwV alue2 AfxMessageBox strTemp Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 16: ...lueindicateswhetherscreenbacklightis1 screenbacklightonorscreenbacklightis0 screen backlightoff Example DWORDdwResult dwResult GetBacklightStatus if dwResult 1 AfxMessageBox _T Backlighton else AfxMessageBox _T Backlightoff Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 17: ...marks AftercallingthisfunctionwithbOnisFALSE terminalwillonlyturnoffLCDpower Itmeansthatterminalstill works YoushouldcallthisfunctiontoturnonLCDpowerorresetterminal Example DWORDdwResult dwResult PowerOnLCD FALSE poweroffLCD if dwResult E_FUNC_SUCCEED AfxMessageBox _T PowerOnLCDfail Sleep 3000 dwResult PowerOnLCD TRUE poweronLCD if dwResult E_FUNC_SUCCEED AfxMessageBox _T PowerOnLCDfail Requiremen...

Page 18: ...ReturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks TheBacklightSettingprograminControlPanelsetsscreenbacklightbrightness Calledthisfunctionwillalso changethebrightnessinBacklightSetting YoucanusethisfunctionorBacklightSettingprograminControlPanel toadjustbacklightbrightness Example DWORDdwResult SetBacklightPW...

Page 19: ...RROR E_FUNC_PAR_ERROR Remarks IfthebOnparameterisFALSE powerbuttonisdisabled Thepowerbuttonwillnotworkwhenpowerbutton pressed Ifterminalenterssuspendmode thepowerbuttonwillworkoncetowakeup Whenterminalwakesup thepowerbuttonisstilldisabled UntilthisfunctioncallswithparameterTRUEtoenablepowerbutton Example DWORDdwResult dwResult EnablePowerButton FALSE if dwResult E_FUNC_SUCCEED AfxMessageBox _T Ena...

Page 20: ...ue Alphamode 0 numericmode 1 lowercaselettermode 2 uppercaselettemode Example DWORDdwResult dwResult GetKeypadAlphaMode switch dwResult case0 AfxMessageBox _T Numericmode break case1 AfxMessageBox _T Lowercaselettermode break case2 AfxMessageBox _T Uppercaselettermode break Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 21: ...es Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Example CStringstrTemp strTemp VisualKey for inti 0 i strTemp GetLength i SendKbdVisualKey unsignedchar strTemp GetAt i Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 22: ...cmode 1 lowercaselettermode 2 uppercaselettermode ReturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Example DWORDdwResult dwResult SetKeypadAlphaMode 1 if dwResult E_FUNC_SUCCEED AfxMessageBox _T SetKeypadAlphaModefail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sy...

Page 23: ...lues ThereturnvalueindicateswhetherkeypadLEDison TRUE orkeypadLEDisoff FALSE Example BOOLbResult bResult GetKeypadLEDStatus if bResult TRUE AfxMessageBox _T KeypadLEDon elseif bResult FALSE AfxMessageBox _T KeypadLEDoff Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 24: ...readLED FALSE ReturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Example DWORDdwResult dwResult GoodReadLEDOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T GoodReadLEDOnfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 25: ...NC_ERROR E_FUNC_PAR_ERROR Remarks TheKeyPadLEDsettinginControlPanelisusedtosettheKeypadLEDoperationtomeetrequirements Called thisfunctionwillchangetheKeyPadLEDsettingtoalwaysonoroff YoucanusethisfunctionorKeyPadLED settinginControlPaneltoalwaysturnonoroffkeypadLED Example DWORDdwResult dwResult KeypadLEDOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T KeypadLEDOnfail Requirements OSV ersions Wi...

Page 26: ...Aftercalledthisfunction terminalwillentersuspendmode voidCallSuspend Parameters None ReturnValues None Example suspenddevice CallSuspend Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 27: ...rationissuccessful otherwiseFALSE Remarks AftercalledEnableAutoConnectwithbEnablesettoTRUE terminalwillautomaticallyexecuteActiveSync programwhenuserplugcableintoterminal AftercalledEnableAutoConnectwithbEnablesettoFALSE terminalwillnotautomaticallyexecuteActiveSyncprogramwhenuserplugcableintoterminal Example BOOLbResult bResult EnableAutoConnect TRUE if bResult FALSE AfxMessageBox _T EnableAutoCo...

Page 28: ...storeceivethemessage uMsg in Themessagevaluethatistobesentwhenalphakeypressed ReturnValues Return0iftheoperationissuccessful otherwisereturn1 Remarks TheapplicationshouldcallUnregisterAlphaKeyNotificationfunctiontounregistermessagefromthedll Example if RegisterAlphaKeyNotification this m_hWnd WM_USER 0x0001 AfxMessageBox _T RegisterAlphaKeyNotificationFAIL Requirements OSV ersions WindowsCE5 0andl...

Page 29: ...heChineseIME FALSE ReturnValues ReturnTRUEiftheoperationissuccessful otherwiseFALSE Remarks TheChineseIMEonlysupportinChineseOS Itwillworkaftercallthisfunctionandresetterminal Example BOOLbResult bResult ShowChineseIME TRUE if bResult FALSE AfxMessageBox _T ShowChineseIMEfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 30: ...erationissuccessful otherwiseFALSE Remarks AftercalledthisfunctionwithparameterFALSE terminalwillhidealliconsondesktop Aftercalledthisfunction withparameterTRUE terminalwilldisplayalliconswhichhadalreadyshowedondesktop Example BOOLbResult bResult ShowDesktop TRUE if bResult FALSE AfxMessageBox _T ShowDesktopfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax l...

Page 31: ...UE orhidethetoolbaron windowsexplore FALSE ReturnValues ReturnTRUEiftheoperationissuccessful otherwiseFALSE Remarks TheShowExploreToolbarfunctiononlyeffectthewindowsexplorersthatopenedalready Example BOOLbResult bResult ShowExploreToolbar TRUE if bResult FALSE AfxMessageBox _T ShowExploreToolbarfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sy...

Page 32: ... ReturnTRUEiftheoperationissuccessful otherwiseFALSE Remarks Aftercalledthisfunction terminalwilldisplayorhidetaskbar Iftaskbarishidebythisfunction itneedtocallthis functiontodisplaytaskbaragain Example BOOLbResult bResult ShowTaskbar TRUE if bResult FALSE AfxMessageBox _T ShowTaskbarfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll ...

Page 33: ...egisterAlphaKeyNotification HANDLEhWnd Parameters hWnd in Thewindowhandleoftheapplication ReturnValues Return0iftheoperationissuccessful otherwisereturn1 Example if UnregisterAlphaKeyNotification this m_hWnd AfxMessageBox _T UnregisterAlphaKeyNotificationFAIL Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61 ...

Page 34: ...sE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueis E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks Youcanusethisfunctiontovibratetheterminaltoindicateoperatorthatsomethinghappened Calledthisfunction willnotchangethe ScannerVibrator setting Example DWORDdwResult dwResult VibratorOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T VibratorOnfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax...

Page 35: ...meters None ReturnValues Iffunctionsucceeds thereturnvalueisTRUE Iffunctionfails thereturnvalueisFALSE Example BOOLbResult bResult BT_Enable if bResult 0 AfxMessageBox _T OpenBluetoothfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61B ...

Page 36: ...ReturnValues Iffunctionsucceeds thereturnvalueisTRUE Iffunctionfails thereturnvalueisFALSE Example BOOLbResult bResult BT_Disable if bResult 0 AfxMessageBox _T CloseBluetoothfail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61B ...

Page 37: ...rs None ReturnValues Iffunctionsucceeds thereturnvalueisTRUE Iffunctionfails thereturnvalueisFALSE Example BOOLbResult bResult WL_Enable if bResult 0 AfxMessageBox _T Openwirelessdevicefail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61W ...

Page 38: ...urnValues Iffunctionsucceeds thereturnvalueisTRUE Iffunctionfails thereturnvalueisFALSE Example BOOLbResult bResult WL_Disable if bResult 0 AfxMessageBox _T Closewirelessdevicefail Requirements OSV ersions WindowsCE5 0andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT61W ...

Page 39: ...egister 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...

Page 40: ...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 scan key GetLibraryVersion Get the library version GetTriggerKeyStatus Get scan k...

Page 41: ...arks TheapplicationmustcallAPI_Unregistertounregisterfromthedllandclosescannermoduleafterdonewith scanner Themessagescanbeoneofthefollowings SM_DA TA_READY Indicatesthatscandataissuccessfullyreading andreadytoretrieve SM_ERROR_SYS Indicatesasystemerror whichiscausedbycallingsystemfunction Call API_GetSysErrortogetthesystemerrorcode SM_ERROR_API Indicatesanerror CallAPI_GetErrortogeterrorcode Examp...

Page 42: ...eapplicationfromSCANAPIAX dllandclosescannermodule voidAPI_Unregister Parameters None ReturnValues None Example API_Unregister Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 43: ...ize uiBarType out barcodetype ThisparameterisignoredandshouldbesettoNULL ReturnValues Return1iftheoperationissuccessful otherwisereturn0 Remarks Ifthebuffersizeislessthanscandata functionreturn0andtheparameteruiLengthreturnthesizeofthebufferto getbarcodedata Example if message SM_DA TA_READY CStringstrBarData strBarType UINT uiSize uiType i char pBuf uiSize uiType 0 API_GetBarData NULL uiSize uiTy...

Page 44: ...iSize uiType strBarType Format _T d uiType for i 0 i strlen pBuf i strBarData pBuf i AfxMessageBox _T Type strBarType _T r nBarcode strBarData return0 Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 45: ... uiType i uiLength char pBuf uiLength API_GetBarDataLength if uiLength 0 strData _T NoData else uiSize uiLength 1 pBuf char newchar uiSize memset pBuf 0 uiSize API_GetBarData LPBYTE pBuf uiSize uiType for i 0 i strlen pBuf i strData pBuf i AfxMessageBox strData return0 Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 46: ...HINAPOST 118 ChinaPost BC_EAN8 105 EAN8 BC_RSS14 119 RSS14 BC_EAN13 106 EAN13 BC_RSS_LIMITED 120 RSSLimited BC_INDUSTRIAL_25 107 Industrial2of5 BC_RSS_EXPANDED 121 RSSExpanded BC_INTERLEA VED_25 108 Interleaved2of5 BC_PHARMACODE39 122 Pharamacode39 BC_STANDARD_25 109 Standard2of5 BC_MICRO_PDF 123 MicroPDF BC_MSI_PLESSEY 110 MSIPlessey BC_EANUCC 124 UCC EANcomposite BC_UK_PLESSEY 111 UKPlessey BC_I...

Page 47: ...Programming Manual 44 LinkDLL scanapiax dll Device PT61 ...

Page 48: ...ommandstoscannermodulefailed ERR_SETTING_FAIL WM_USER 2 Setscannersettingfailed ERR_SCANNER_NOT_OPEN WM_USER 3 Openscannermodulefailed ERR_INV ALID_FILE WM_USER 4 Invalidsettingfile Example dwError API_GetError strMess Format _T APIErrorCode d dwError AfxMessageBox strMess Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 49: ...thesystemerrorcodethatisreturnedbyGetLastError Thedescriptionofsystemerrorcodecanbefindin MSDN Example dwError API_GetSysError strMess Format _T SystemErrorCode d dwError AfxMessageBox strMess Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 50: ...lues None Remarks UseAPI_GoodRead toindicateuserbarcodedataisscanned Thebuzzerindicationofscanmodulecanbesetby scanconfigurationprogramincontrolpanel TheLEDindicationofscanmodulecanbesetby SCAN_SendCommand function IfbuzzerandLEDindicationaredisable theAPI_GoodReadwilldonothing Example API_GoodRead Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL s...

Page 51: ...ssful otherwisereturnFALSE Example CStringstrFile CFileDialog dlg TRUE NULL NULL OFN_FILEMUSTEXIST OFN_PA THMUSTEXIST if dlg DoModal IDOK return strFile dlg GetPathName if theApp m_API_LoadSettingsFromFile strFile AfxMessageBox _T LoadformfileSucceed else AfxMessageBox _T LoadfromfileFail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax d...

Page 52: ...ters None ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if API_Reset AfxMessageBox _T ResetSucceed else AfxMessageBox _T ResetFail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 53: ...edatabufferthatthenextnewscandatacancomein voidAPI_ResetBarData Parameters None ReturnValues None Example API_ResetBarData Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 54: ...operationissuccessful otherwisereturnFALSE Example CStringstrFile CfileDialogdlg FALSE _T axs NULL OFN_CREA TEPROMPT _T ScannerSettingsFiles axs axs if dlg DoModal IDOK return strFile dlg GetPathName if API_SaveSettingsToFile strFile AfxMessageBox _T SavetofileSucceed else AfxMessageBox _T SavetofileFail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib Lin...

Page 55: ...ameters None ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if API_SaveSettingsToScanner AfxMessageBox _T SavetoScannerSucceed else AfxMessageBox _T SavetoScannereFail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 56: ...eturnValues ThereturnvalueTRUEindicatesthatscan exeisrunning ThereturnvalueFALSEindicatesthatscan exeisnot running Example if S2K_IsLoad AfxMessageBox _T scan exeload else AfxMessageBox _T scan exedoesnotload Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 57: ...unloadscan exeitwillwaituntilthescan execlosedortimeoutbythisparameter ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if S2K_Load FALSE 1000 AfxMessageBox _T unloadscan exesuccess else AfxMessageBox _T unloadscan exefailed Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 58: ...stbelargethan100 ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Remarks ThepReturnvalueisdependingonnCommand1andnCommand2 ThenCommand1andnCommand2decide whichscannersettingtobequeried Example char pV alue pV alue char newchar 100 memset pV alue 0 100 queryBuzzerindicationsetting SCAN_QueryStatus 5 3 pV alue Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h Li...

Page 59: ...Command2 in Seescancommandtable pV alue in Seescancommandtable ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example EnableBuzzerindicationsetting if SCAN_SendCommand 5 3 1 AfxMessageBox _T Setupcomplete else AfxMessageBox _T Setupfalse Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 60: ...blescankeytoresume system FALSE ReturnValues Return0iffunctionsucceed otherwisereturnE_FUNC_ERROR Example Enablescankeytoresumesystem if SCAN_ResumeSystem 1 0 AfxMessageBox _T Enablescankeytoresumesystemsucceed else AfxMessageBox _T Enablescankeytoresumesystemfail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 61: ...esettingrefertoscancommandtable ReturnValues Return FALSEiftheoperationissuccess otherwisereturnE_SCAN_INV ALID_HANDLE E_SCAN_SETTING_FAIL Example ScannerSetting setting setting Code11 m_uiRead 1 setting Code39 m_uiRead 1 SCAN_BatchSetting setting Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 62: ...eristoreceivescannersettingconfigure Thebarcodesettingrefertoscancommandtable ReturnValues ReturnFALSEiftheoperationissuccess otherwisereturnE_SCAN_INV ALID_HANDLE Example ScannerSetting setting SCAN_BatchRead setting Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 63: ...OLPT_OpenScan2Key Parameters None ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example BOOLbResult bResult PT_OpenScan2Key if bResult AfxMessageBox _T PT_OpenScan2Keyfail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 64: ...seScan2Key Closescan exe voidPT_CloseScan2Key Parameters None ReturnValues None Example PT_CloseScan2Key Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 65: ...ltvalue intPT_SetT oDefault Parameters None ReturnValues Return1iftheoperationissuccessful otherwisereturn0 Example if PT_SetToDefault AfxMessageBox _T PT_SetToDefaultfail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 66: ...hesystembuffer ApplicationcanusefunctioncallPT_GetBarcodeDatatogetscandatafromsystembuffer intPT_EnableScanner Parameters None ReturnValues Return0iftheoperationissuccessful otherwisereturn1 Example if PT_EnableScanner AfxMessageBox _T PT_EnableScannerfail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 67: ...Thisfunctionwillclosescannermodule voidPT_DisableScanner Parameters None ReturnValues None Example PT_DisableScanner Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 68: ...sTRUEiftherearebarcodedatainsystembuffer ThisfunctionreturnsFALSEifthereareno barcodedatainsystembuffer Example if PT_CheckBarcodeData m_strScanData _T Therearebarcodedatainsystembuffer else m_strScanData _T Therearenobarcodedatainsystembuffer Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 69: ...orstoringscanneddata uiMaxBufferLen in out Themaxbuffersize ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Remarks Ifthebuffersizeislessthanscandata functionreturn0andtheparameteruiMaxBufferLenreturnthesizeof barcodedata 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 ...

Page 70: ...Programming Manual 67 Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 71: ...None ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if PT_SetDefault AfxMessageBox _T PT_SetDefaultsucceed else AfxMessageBox _T PT_SetDefaultfail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 72: ...ereturnvalueisE_FUNC_SUCCEED Iffunctionfails thereturnvalueis E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks Thisfunctionismeaningfulonlyifscannerisopened Thewarmresetwillenable scankeyautomatically Example BOOLbResult bResult EnableTriggerKey TRUE if bResult AfxMessageBox _T EnableTriggerKeySucceed Else AfxMessageBox _T EnableTriggerKeyFail Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h ...

Page 73: ...Theversionnumber Ifthereturnvalueis101 itmeansthatdllversionis1 01 Example intnV ersion CStringstrTemp nV ersion GetLibraryV ersion strTemp Format _T V ersion d nV ersion AfxMessageBox strTemp Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 74: ...rnValues Thereturnvalue1indicatesthatscankeyisenable Thereturnvalue0indicatesthatscankeyisdisable Example if GetTriggerKeyStatus AfxMessageBox _T scankeyensable else AfxMessageBox _T scankeydisable Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 75: ...eleasescankey FALSE ReturnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails thereturnvalueis E_FUNC_ERROR Remarks Thisfunctionismeaningfulonlyifscannerisopened Example PressTriggerKey TRUE Sleep 1000 PressTriggerKey FALSE Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 76: ...rnValues Thereturnvalue1indicatesthatscankeyispressed Thereturnvalue0indicatesthatscankeyisreleased Example if TriggerKeyStatus AfxMessageBox _T scankeypressed else AfxMessageBox _T scankeyrelease Requirements OSV ersions WindowsCE5 0andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT61 ...

Page 77: ...odedata 1 Aftercodedata 12 AIMID 0 Disable 1 Enable 6 Transmission 13 CodeID 0 Clear 1 Proprietary SeeNote1 6 Globalmin codelength 0 80 0 Disable 3 9 Globallockcodelength 0 80 0 Disable 0 10 Configurablecodelength 1 SeeNote2 11 Configurablecodelength 2 SeeNote2 12 Configurablecodelength 3 SeeNote2 13 Configurablecodelength 4 SeeNote2 14 Configurablecodelength 5 SeeNote2 15 Configurablecodelength 6...

Page 78: ...t 0 Disable 1 Enable 10 Code11 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 1 Read 0 Disable 1 Enable 2 CheckDigit 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable 1 Enable 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 10 FullASCII 0 Disable 1 Enable 13 TransmitStart StopCharacters 0 Disable 1 Enable 14 ItalianPharmacode 0 Disable 1 Enable 11 Code39 15 ItalianPharmacodeOnly 0 Disable...

Page 79: ...T128Form 0 A 1 A 2 A 3 4 5 6 1 Read 0 Disable 1 Enable 2 CheckDigit 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable 1 Enable 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 11 TransmitStart StopCharacters 0 Disable 1 Enable 14 Codabar 12 DualField 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable 1 Enable 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 15 EAN8 1...

Page 80: ... Enable 17 Industrial2of5 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 1 Read 0 Disable 1 Enable 2 CheckDigit 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable 1 Enable 18 Interleaved2of5 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 1 Read 0 Disable 1 Enable 2 CheckDigit 0 Disable 1 Onedigit MOD10 2 Twodigit MOD10 10 3 TransmitCheckDigit 0 Disable 1 Enable 20 MSIPlessey 8 CodeIDsetti...

Page 81: ...SCIIcode 1bytes 12 ConverttoEAN 13 0 Disable 1 Enable 13 Coupon 0 Disable 1 Enable SeeNote4 14 CouponTransmit C1 0 Disable 1 Enable 23 UPCA 15 TransmitNumberSystem 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable 1 Enable 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 14 ConverttoUPC A 0 Disable 1 Enable 24 UPCE 15 TransmitNumberSystem 0 Disable 1 Enable 1 Read 0 Di...

Page 82: ...cy 0 Disable 1 Enable 35 UPC EANGeneral 6 GTINFormatting 0 Disable 1 Enable 1 Read 0 Disable 1 Enable SeeNote5 36 IA TA2of5 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 1 Read 0 Disable 1 Enable 8 CodeIDsetting 0 Disable 0x01 0x7FASCIIcode 1bytes 37 TRI OPTIC 10 Conversion 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 2 TransmitApplicationID 0 Disable 1 Enable 3 TransmitCheckDigit 0 Disable ...

Page 83: ...dabar 104 UPCE 114 EAN8 105 Matrix25 115 EAN13 106 IA TA25 125 Industrial2of5 107 Trioptic 126 Interleaved2of5 108 RSS 127 Note2 Therearesevenbarcodelocklengthsavailable Specificcodetypecanbeassignedtoalocklength Codetype HexV alue CODE11 64 CODE39 65 CODE93 66 CODE128 67 CODABAR 68 INDUSTRIAL_25 6B INTERLEA VED_25 6C MSI_PLESSEY 6E UK_PLESSEY 6F TELEPEN 70 MA TRIX_25 73 TRIOPTIC 7E Length 0 80 0 ...

Page 84: ...e Code39 Can only read 20 the length of the bar code Note3 ScanTimeout themaximumtime inseconds duringwhichthelaserremainsonwithoutdecodingany barcode IdleTimeout themaximumtime inseconds duringwhichthescannerremainsidlewithoutanyaction Note4 WhenthissettingisenabletheUCC EAN128barcodecannotberead Note5 IA TA2of5onlysupport13 15Digit ...

Page 85: ...sedtothefunction E_FUNC_PAR_ERROR 0x00000003 Ainvalidparameterwaspassedtothefunction E_SCAN_FUNC_SUCCEED 0x00000000 Scannerworksucceed E_SCAN_INV ALID_HANDLE 0x00000001 Scannernotreadymaybeotherapplicationusing E_SCAN_SETTING_FAIL 0x00000003 Settingscannerfail E_SCAN_INSUFFICIENT_BUFFER 0x00000004 Thebuffertoreceivescandataistosmall E_SCAN_NODA TA 0x00000005 Thereisnoscandata E_SCAN_TIMEOUT 0x0000...

Reviews: