background image

 

EnableAutoConnect 

The EnableAutoConnect function turns Autoconnect on and off. 

BOOL EnableAutoConnect 

    BOOL 

bEnable

 

}

 

 

Parameters 

 

 

bEnable 

[in] Flag that indicates whether ActiveSync is being automatically executed (TRUE) or ActiveSync is 

being not automatically executed (FALSE) when user plug cable into terminal. 

 

Return Values 

 

 

Return TRUE if the operation is 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 == FALSE) 

   AfxMessageBox(_T("EnableAutoConnect 

fail")); 

 

Requirements 

 

 

OS Versions:

 Windows CE 4.2 and later. 

 

 

Header: 

sysapiax.h

 

 

 

Link Library: 

sysapiax.lib

 

Link DLL:

 sysapiax.dll 

Device: 

PT80

 

RegisterAlphaKeyNotification 

Register the application to SYSAPIAX.dll, so that SYSAPIAX.dll will send a windows message to the application when the 

Programming Manual 

                                                                                           23 

Summary of Contents for PT-80

Page 1: ...PT 80 Mobile Computer Programming Manual DOC NO UM PT805 02 Aug 2007 Version 1 0 ...

Page 2: ...Intensity 10 GetBacklightStatus 12 PowerOnLCD 13 SetBacklightPWM 14 KEYPADRELA TEDFUNCTIONS 15 EnablePowerButton 15 GetKeypadAlphaMode 16 SendKbdVisualKey 17 SetKeypadAlphaMode 18 LEDRELA TEDFUNCTIONS 19 GetKeypadLEDStatus 19 GoodReadLEDOn 20 KeypadLEDOn 21 SYSTEMRELA TEDFUNCTIONS 22 CallSuspend 22 EnableAutoConnect 23 RegisterAlphaKeyNotification 23 ShowChineseIME 25 ShowDesktop 26 ShowExploreToo...

Page 3: ...ToScanner 45 S2K_IsLoad 46 S2K_Load 47 SCAN_QueryStatus 48 SCAN_SendCommand 49 SCAN2KEYRELA TEDFUNCTIONS 50 PT_OpenScan2Key 50 PT_CloseScan2Key 51 PT_SetToDefault 52 SCANNERRELA TEDFUNCTIONS 53 PT_EnableScanner 53 PT_DisableScanner 54 PT_CheckBarcodeData 55 PT_GetBarcodeData 56 PT_SetDefault 58 SCANKEYRELA TEDFUNCTIONS 59 EnableTriggerKey 59 GetLibraryV ersion 60 GetTriggerKeyStatus 61 PressTrigge...

Page 4: ...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 Indicators Battery Status System Settings Argox Scanning device Application Programming Interface API Definitions API definitions illustrate how to call a given function The API definitio...

Page 5: ...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 GetProcAddress dllHandle _T SetB...

Page 6: ...tensity z GetBacklightStatus Gets screen backlight status z PowerOnLCD Turn on or off LCD power z SetBacklightPWM Adjusts screen backlight brightness KeyPad Related Functions z EnablePowerButton Enable and disable power button z GetAlphaMode Get the current input mode z SendKbdVisualKey Sends a visual key to key buffer z SetAlphaMode Change input mode LED Related Functions z GetKeypadLEDStatus Get...

Page 7: ...lay and hide all icons on desktop z ShowExploreToolbar Display and hide toolbar on windows explorer z ShowTaskbar Display and hide taskbar z UnregisterAlphaKeyNotification Unregister message request Programming Manual 4 ...

Page 8: ...ueisE_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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 P...

Page 9: ...ffunctionsucceeds 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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 6 ...

Page 10: ...esinthefollowingtable 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 Programming Manual 7 ...

Page 11: ...xMessageBox _T NoBattery break case5 AfxMessageBox _T BatteryUnknown break Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 8 ...

Page 12: ...functionfails 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 OSVersions WindowsCE4 2andlater Header sysapiax h Li...

Page 13: ...succeeds 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 AfxMessageBox _T Display_...

Page 14: ...dwV alue2 AfxMessageBox strTemp Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 11 ...

Page 15: ...eenbacklightis1 screenbacklightonorscreenbacklightis0 screen backlightoff Example DWORDdwResult dwResult GetBacklightStatus if dwResult 1 AfxMessageBox _T Backlighton else AfxMessageBox _T Backlightoff Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 12 ...

Page 16: ...functionwithbOnisFALSE terminalwillonlyturnoffLCDpower Itmeansthatterminalstill works Y oushouldcallthisfunctiontoturnonLCDpowerorresetterminal 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 Requirements OSVersions Windows...

Page 17: ...nsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails possiblereturnvalueare E_FUNC_ERROR E_FUNC_PAR_ERROR Remarks TheBacklightSettingprograminControlPanelsetsscreenbacklightbrightness Calledthisfunctionwillalso changethebrightnessinBacklightSetting Y oucanusethisfunctionorBacklightSettingprograminControlPanel toadjustbacklightbrightness Example DWORDdwResult SetBacklightPWM 100 100 if dwResult...

Page 18: ... Remarks IfthebOnparameterisFALSE powerbuttonisdisabled Thepowerbuttonwillnotworkwhenpowerbutton pressed Ifterminalenterssuspendmode thepowerbuttonwillworkoncetowakeup Whenterminalwakesup thepowerbuttonisstilldisabled UntilthisfunctioncallswithparameterTRUEtoenablepowerbutton Example DWORDdwResult dwResult EnablePowerButton FALSE if dwResult E_FUNC_SUCCEED AfxMessageBox _T EnablePowerButtonfail Re...

Page 19: ...cmode 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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 16 ...

Page 20: ... 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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 17 ...

Page 21: ...ermode 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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80...

Page 22: ...dicateswhetherkeypadLEDison TRUE orkeypadLEDisoff FALSE Example BOOLbResult bResult GetKeypadLEDStatus if bResult TRUE AfxMessageBox _T KeypadLEDon elseif bResult FALSE AfxMessageBox _T KeypadLEDoff Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 19 ...

Page 23: ...alues 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 OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 20 ...

Page 24: ...ROR Remarks TheKeyPadLEDsettinginControlPanelisusedtosettheKeypadLEDoperationtomeetrequirements Called thisfunctionwillchangetheKeyPadLEDsettingtoalwaysonoroff Y oucanusethisfunctionorKeyPadLED settinginControlPaneltoalwaysturnonoroffkeypadLED Example DWORDdwResult dwResult KeypadLEDOn TRUE if dwResult E_FUNC_SUCCEED AfxMessageBox _T KeypadLEDOnfail Requirements OSVersions WindowsCE4 2andlater Hea...

Page 25: ...on terminalwillentersuspendmode voidCallSuspend Parameters None ReturnValues None Example suspenddevice CallSuspend Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 22 ...

Page 26: ...RUE terminalwillautomaticallyexecuteActiveSync programwhenuserplugcableintoterminal AftercalledEnableAutoConnectwithbEnablesettoFALSE terminalwillnotautomaticallyexecuteActiveSyncprogramwhenuserplugcableintoterminal Example BOOLbResult bResult EnableAutoConnect TRUE if bResult FALSE AfxMessageBox _T EnableAutoConnectfail Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sy...

Page 27: ...ues Return0iftheoperationissuccessful otherwisereturn1 Remarks TheapplicationshouldcallUnregisterAlphaKeyNotificationfunctiontounregistermessagefromthedll Example if RegisterAlphaKeyNotification this m_hWnd WM_USER 0x0001 AfxMessageBox _T RegisterAlphaKeyNotificationFAIL Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Program...

Page 28: ...urnValues ReturnTRUEiftheoperationissuccessful otherwiseFALSE Remarks TheChineseIMEonlysupportinChineseOS Itwillworkaftercallthisfunctionandresetterminal Example BOOLbResult bResult ShowChineseIME TRUE if bResult FALSE AfxMessageBox _T ShowChineseIMEfail Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 25 ...

Page 29: ...therwiseFALSE Remarks AftercalledthisfunctionwithparameterFALSE terminalwillhidealliconsondesktop Aftercalledthisfunction withparameterTRUE terminalwilldisplayalliconswhichhadalreadyshowedondesktop Example BOOLbResult bResult ShowDesktop TRUE if bResult FALSE AfxMessageBox _T ShowDesktopfail Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dl...

Page 30: ... windowsexplore FALSE ReturnValues ReturnTRUEiftheoperationissuccessful otherwiseFALSE Remarks TheShowExploreToolbarfunctiononlyeffectthewindowsexplorersthatopenedalready Example BOOLbResult bResult ShowExploreToolbar TRUE if bResult FALSE AfxMessageBox _T ShowExploreToolbarfail Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80...

Page 31: ...ionissuccessful otherwiseFALSE Remarks Aftercalledthisfunction terminalwilldisplayorhidetaskbar Iftaskbarishidebythisfunction itneedtocallthis functiontodisplaytaskbaragain Example BOOLbResult bResult ShowTaskbar TRUE if bResult FALSE AfxMessageBox _T ShowTaskbarfail Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming...

Page 32: ...cation HANDLEhWnd Parameters hWnd in Thewindowhandleoftheapplication ReturnValues Return0iftheoperationissuccessful otherwisereturn1 Example if UnregisterAlphaKeyNotification this m_hWnd AfxMessageBox _T UnregisterAlphaKeyNotificationFAIL Requirements OSVersions WindowsCE4 2andlater Header sysapiax h LinkLibrary sysapiax lib LinkDLL sysapiax dll Device PT80 Programming Manual 29 ...

Page 33: ...l z API_Unregister Un register the application from SCANAPIAX dll z API_GetBarData Get barcode data into the buffer z API_GetBarDataLength Return the scan data length z API_GetBarType Return the barcode type z API_GetError Get the error code z API_GetSysError Return the system error code z API_GoodRead Play sound and flash LED z API_LoadSettingFromFile Loader scanner setting form file z API_Reset ...

Page 34: ...tem buffer z PT_GetBarcodeData Get barcode data and type from system buffer z PT_SetDeault Reset the scanner setting to default value Scan Key Related Functions z EnableTriggerKey Enable and disable scan key z GetLibraryVersion Get the library version z GetTriggerKeyStatus Get scan key status z PressTriggerKey Trigger scan key z TriggerKeyStatus Get scan key press status Scan Command Table The sca...

Page 35: ...I_Unregistertounregisterfromthedllandclosescannermoduleafterdonewith scanner Themessagescanbeoneofthefollowings SM_DA TA_READY Indicatesthatscandataissuccessfullyreading andreadytoretrieve SM_ERROR_SYS Indicatesasystemerror whichiscausedbycallingsystemfunction Call API_GetSysErrortogetthesystemerrorcode SM_ERROR_API Indicatesanerror CallAPI_GetErrortogeterrorcode Example if API_Register theApp Get...

Page 36: ...IAX dllandclosescannermodule voidAPI_Unregister Parameters None ReturnValues None Example API_Unregister Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 33 ...

Page 37: ...ze uiBarType out barcodetype 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 uiType if uiSize 0 strBarData _T NoData else pBu...

Page 38: ...e Format _T d uiType for i 0 i strlen pBuf i strBarData pBuf i AfxMessageBox _T Type strBarType _T r nBarcode strBarData return0 Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 35 ...

Page 39: ...r 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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 36 ...

Page 40: ...INAPOST 118 ChinaPost BC_EAN13 106 EAN13 BC_RSS14 119 RSS14 BC_INDUSTRIAL_25 107 Industrial2of5 BC_RSS_LIMITED 120 RSSLimited BC_INTERLEA VED_25 108 Interleaved2of5 BC_RSS_EXPANDED 121 RSSExpanded BC_STANDARD_25 109 Standard2of5 BC_PHARMACODE39 122 Pharamacode39 BC_MSI_PLESSEY 110 MSIPlessey BC_MICRO_PDF 123 MicroPDF BC_UK_PLESSEY 111 UKPlessey BC_EANUCC 124 UCC EANcomposite BC_TELEPEN 112 Telepen...

Page 41: ...efailed 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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 38 ...

Page 42: ...tisreturnedbyGetLastError Thedescriptionofsystemerrorcodecanbefindin MSDN Example dwError API_GetSysError strMess Format _T SystemErrorCode d dwError AfxMessageBox strMess Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 39 ...

Page 43: ...eAPI_GoodRead toindicateuserbarcodedataisscanned Thebuzzerindicationofscanmodulecanbesetby scanconfigurationprogramincontrolpanel TheLEDindicationofscanmodulecanbesetby SCAN_SendCommand function IfbuzzerandLEDindicationaredisable theAPI_GoodReadwilldonothing Example API_GoodRead Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device P...

Page 44: ...rFile 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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 API_Reset Resetthescannersetti...

Page 45: ...ionissuccessful otherwisereturnFALSE Example if API_Reset AfxMessageBox _T ResetSucceed else AfxMessageBox _T ResetFail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 42 ...

Page 46: ...tnewscandatacancomein voidAPI_ResetBarData Parameters None ReturnValues None Example API_ResetBarData Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 43 ...

Page 47: ...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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Devi...

Page 48: ...ues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if API_SaveSettingsToScanner AfxMessageBox _T SavetoScannerSucceed else AfxMessageBox _T SavetoScannereFail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 45 ...

Page 49: ...valueTRUEindicatesthatscan exeisrunning ThereturnvalueFALSEindicatesthatscan exeisnot running Example if S2K_IsLoad AfxMessageBox _T scan exeload else AfxMessageBox _T scan exedoesnotload Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 46 ...

Page 50: ...aituntilthescan execlosedortimeoutbythisparameter ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if S2K_Load FALSE 1000 AfxMessageBox _T unloadscan exesuccess else AfxMessageBox _T unloadscan exefailed Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 47 ...

Page 51: ...rnValues 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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax li...

Page 52: ...mandtable pV alue in Seescancommandtable ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example EnableBuzzerindicationsetting if SCAN_SendCommand 5 3 1 AfxMessageBox _T Setupcomplete else AfxMessageBox _T Setupfalse Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 49 ...

Page 53: ...meters None ReturnValues ReturnTRUEiftheoperationissuccessful otherwisereturnFALSE Example BOOLbResult bResult PT_OpenScan2Key if bResult AfxMessageBox _T PT_OpenScan2Keyfail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 50 ...

Page 54: ...exe voidPT_CloseScan2Key Parameters None ReturnValues None Example PT_CloseScan2Key Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 51 ...

Page 55: ...fault Parameters None ReturnValues Return1iftheoperationissuccessful otherwisereturn0 Example if PT_SetToDefault AfxMessageBox _T PT_SetToDefaultfail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 52 ...

Page 56: ...nusefunctioncallPT_GetBarcodeDatatogetscandatafromsystembuffer intPT_EnableScanner Parameters None ReturnValues Return0iftheoperationissuccessful otherwisereturn1 Example if PT_EnableScanner AfxMessageBox _T PT_EnableScannerfail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 53 ...

Page 57: ...scannermodule voidPT_DisableScanner Parameters None ReturnValues None Example PT_DisableScanner Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 54 ...

Page 58: ...edatainsystembuffer ThisfunctionreturnsFALSEifthereareno barcodedatainsystembuffer Example if PT_CheckBarcodeData m_strScanData _T Therearebarcodedatainsystembuffer else m_strScanData _T Therearenobarcodedatainsystembuffer Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 55 ...

Page 59: ...hemaxbuffersize 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 Can tgetscandata else m_strScanData _T NoSca...

Page 60: ...Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 57 ...

Page 61: ...urnTRUEiftheoperationissuccessful otherwisereturnFALSE Example if PT_SetDefault AfxMessageBox _T PT_SetDefaultsucceed else AfxMessageBox _T PT_SetDefaultfail Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 58 ...

Page 62: ...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 OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax ...

Page 63: ...returnvalueis101 itmeansthatdllversionis1 01 Example intnV ersion CStringstrTemp nV ersion GetLibraryV ersion strTemp Format _T V ersion d nV ersion AfxMessageBox strTemp Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 60 ...

Page 64: ...e1indicatesthatscankeyisenable Thereturnvalue0indicatesthatscankeyisdisable Example if GetTriggerKeyStatus AfxMessageBox _T scankeyensable else AfxMessageBox _T scankeydisable Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 61 ...

Page 65: ...turnValues Iffunctionsucceeds thereturnvalueisE_FUNC_SUCCEED Iffunctionfails thereturnvalueis E_FUNC_ERROR Remarks Thisfunctionismeaningfulonlyifscannerisopened Example PressTriggerKey TRUE Sleep 1000 PressTriggerKey FALSE Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 62 ...

Page 66: ...e1indicatesthatscankeyispressed Thereturnvalue0indicatesthatscankeyisreleased Example if TriggerKeyStatus AfxMessageBox _T scankeypressed else AfxMessageBox _T scankeyrelease Requirements OSVersions WindowsCE4 2andlater Header scanapiax h LinkLibrary scanapiax lib LinkDLL scanapiax dll Device PT80 Programming Manual 63 ...

Page 67: ...nable 10 Codenametransmission 0 Disable 1 Enable 6 Transmission 11 Caseconversion 0 Disable 1 Uppercase 2 Lowercase 4 Doubleconfirm 0 9 6 Globalmin codelength 0 64 7 Globalmax codelength 0 64 7 Scan 8 Invertedimagescan 0 Disable 1 Enable 2 Suffixcharacterssetting 0 NULL 1 0x0D0x0A 2 0x0D 3 0x0A 3 Preamblecharacterssettings 0x00 0xffASCIIcode 22characters 8 Stringsetting 4 Postamblecharacterssettin...

Page 68: ...Icode 1or2bytes 1 Read 0 Disable 1 Enable 2 Check sumverification 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 20 20 Truncatecharactersbeforespace 7 Truncateending 0 15 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 10 Format 0 Standard 1 FullASCII 11 Code39 13 Start stoptransmission 0 Disable 1 Enable 12 Code93 1 Read ...

Page 69: ...able 1 Enable 2 Check sumverification 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 7 Truncateending 0 15 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 10 Format 0 Standard 1 UCC EAN128 12 UCC EAN128IDsetting 0x00 0xffASCIIcode 1bytes 13 Code128 13 Concatenationcode 0x00 0xffASCIIcode 1bytes 14 Codabar 1 Read 0 Disab...

Page 70: ...2bytes 10 Start stoptype 0 ABCD ABCD 1 abcd abcd 2 ABCD TN E 3 abcd tn e 11 Start stoptransmission 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 6 Truncateleading 0 15 7 Truncateending 0 15 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 15 EAN8 10 Supplementdigits 0 None 1 2digits 2 5digits 3 2 5digits 4 UCC EAN128 5 2 UCC EAN128 6 5 UCC EAN128 7 All Program...

Page 71: ...Dsetting 0x00 0xffASCIIcode 1or2bytes 10 Supplementdigits 0 None 1 2digits 2 5digits 3 2 5digits 4 UCC EAN128 5 2 UCC EAN128 6 5 UCC EAN128 7 All 16 EAN13 12 ISBN ISSNconversion 0 Disable 1 Enable 1 Read 0 Disable 1 Enable 2 Check sumverification 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 18 Interleaved2of5 7 0 1...

Page 72: ...runcateleading 0 15 7 Truncateending 0 15 19 Standard2of5 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 1 Read 0 Disable 1 Enable 2 Check sumverification 0 Disable 1 Mod10 2 Mod10 10 3 Mod11 10 3 Check sumtransmission 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 7 Truncateending 0 15 20 MSIPlessey 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 21 1 0 Disable P...

Page 73: ...0 0xffASCIIcode 1or2bytes 1 Read 0 Disable 1 Enable 2 Check sumverification 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 7 Truncateending 0 15 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 22 Telepen 10 Format 0 Numeric 1 FullASCII 1 Read 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 23 UPCA 6 0 15 P...

Page 74: ...ne 1 Truncateleadingzero 2 ExpandtoEAN13 1 Read 0 Disable 1 Enable 3 Check sumtransmission 0 Disable 1 Enable 6 Truncateleading 0 15 7 Truncateending 0 15 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 10 Supplementdigits 0 None 1 2digits 2 5digits 3 2 5digits 4 UCC EAN128 5 2 UCC EAN128 6 5 UCC EAN128 7 All 24 UPCE 11 Truncate expansion 0 None 1 Truncateleadingzero 2 ExpandtoEAN13 3 ExpandtoUPCA Pr...

Page 75: ...Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 7 Truncateending 0 15 25 Matrix25 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes 1 Read 0 Disable 1 Enable 4 Max codelength 0 64 5 Min codelength 0 64 6 Truncateleading 0 15 7 Truncateending 0 15 28 Chinapost 8 CodeIDsetting 0x00 0xffASCIIcode 1or2bytes Programming Manual 72 ...

Page 76: ...NC_SUCCEED 0x00000000 Thefunctionreturnedwithouterror E_FUNC_ERROR 0x00000001 Thefunctionreturnederror E_FUNC_NULLPTR 0x00000002 Anullpointerwaspassedtothefunction E_FUNC_PAR_ERROR 0x00000003 Ainvalidparameterwaspassedtothefunction Programming Manual 73 ...

Reviews: