PT-60 Mobile Computer Programming Manual DOC NO. UM-PT605-02 Oct. 2008 Version 1.0 © 2002-2007 by ARGOX Information Co., Lt
Battery Related Function GetBatteryStatus This function gets main battery status. int GetBatteryStatus { } Parameters None. Return Values The ret
break; case 4: AfxMessageBox(_T("No Battery")); break; case 5: AfxMessageBox(_T("Battery Unknown")); break; }
Display Related Functions BacklightOn This function will always turn on or off screen backlight. DWORD BacklightOn { BOOL bOn } Parameters bOn
Display_QueryBacklightIntensity This function will return the backlight intensity of external power and battery power. DWORD Display_QueryBacklightIn
dwValue2); AfxMessageBox(strTemp); } Requirements OS Versions: Windows CE 5.0 and later. Header: sysapiax.h Link Library: sysapiax.lib Li
GetBacklightStatus This function gets screen backlight status. DWORD GetBacklightStatus { } Parameters None. Return Values The return value indic
PowerOnLCD This function turns on or off LCD power. DWORD PowerOnLCD { BOOL bOn } Parameters bOn [in] Flag that indicates whether turn on LCD
SetBacklightPWM This function adjusts screen backlight brightness. DWORD SetBacklightPWM { int nACPowerPercent, int nBatteryPercent } Paramet
KeyPad Related Functions EnablePowerButton This function will enable or disable power button. DWORD EnablePowerButton { BOOL bOn } Parameters
GetKeypadAlphaMode This function will get the current input mode. DWORD GetKeypadAlphaMode { } Parameters None. Return Values The return value ca
Programming Manual II Table of Contents OVERVIEW...
SendKbdVisualKey This function sends a visual key to key buffer. DWORD SendKbdVisualKey { BYTE Key } Parameters Key [in] Specifies a virtual-k
SetKeypadAlphaMode This function will change input mode. DWORD SetKeypadAlphaMode { int nMode } Parameters nMode [in] Flags for set input mode
LED Related Functions GetKeypadLEDStatus This function gets keypad LED status. BOOL GetKeypadLEDStatus { } Parameters None. Return Values The ret
GoodReadLEDOn This function turns on and off goodread LED. DWORD GoodReadLEDOn { BOOL bOn } Parameters bOn [in] Flag that indicates whether tu
KeypadLEDOn This function always turns on or off keypad LED. DWORD KeypadLEDOn { BOOL bOn } Parameters bOn [in] Flag that indicates whether tu
System Related Functions CallSuspend After called this function, terminal will enter suspend mode. void CallSuspend { } Parameters None. Return
EnableAutoConnect The EnableAutoConnect function turns Autoconnect on and off. BOOL EnableAutoConnect { BOOL bEnable } Parameters bEnable [in]
RegisterAlphaKeyNotification Register the application to SYSAPIAX.dll, so that SYSAPIAX.dll will send a windows message to the application when the a
ShowChineseIME The ShowChineseIME function display and hide the Chinese IME. BOOL ShowChineseIME { BOOL bShow } Parameters bShow [in] Flag tha
ShowDesktop The ShowDesktop function display and hide all icons on desktop. BOOL ShowDesktop { BOOL bShow } Parameters bShow [in] Flag that in
API_SCAN RELATED FUNCTIONS...
ShowExploreToolbar The ShowExploreToolbar function display and hide toolbar on windows explore. BOOL ShowExploreToolbar { BOOL bShow } Parameter
ShowTaskbar The ShowTaskbar function display and hide the taskbar. BOOL ShowTaskbar { BOOL bShow } Parameters bShow [in] Flag that indicates
UnRegisterAlphaKeyNotification The UnregisterAlphaKeyNotification function requests that the application no longer receive alpha key pressed notifica
SCANAPIAX.DLL We supply SCANAPIAX.DLL to allow programmer to control scan device status. There are several functions for user to use. User can use WI
keyboard input. z PT_OpenScan2Key – Execute scan.exe to scan barcode data into Terminal key buffer. z PT_CloseScan2Key – Close scan.exe. z PT_SetToDe
API_SCAN Related Functions API_Register Register the application to SCANAPIAX.dll, so that SCANAPIAX.dll can communication with the application. It w
API_Unregister Unregister the application from SCANAPIAX.dll and close scanner module. void API_Unregister { } Parameters None Return Values No
API_GetBarData Get Barcode into the buffer. When you get the message SM_DATA_READY, call this function to get the barcode data. UINT API_GetBarData {
memset(pBuf, 0, uiSize+1); API_GetBarData((LPBYTE)pBuf, &uiSize, &uiType); strBarType.Format(_T("%d"), uiType); for(
API_GetBarDataLength Get the scan data length. UINT API_GetBarDataLength { } Parameters None Return Values Scan data length Example if(messa
Overview The Argox Mobile Computer Software Developer Kit (SDK) Help is intended to assist programmers with the creation of applications for Argox M
API_GetBarType Get the barcode type. UINT API_GetBarType { } Parameters None Return Values Return the barcode type Remarks value Barcode
API_GetError Get the error code. DWORD API_GetError { } Parameters None Return Values The return value can be one of the following table: Constan
API_GetSysError Get the system error code. DWORD API_GetSysError { } Parameters None Return Values Return the system error code that is returned
API_GoodRead This function plays a sound when buzzer indication of scan module is enable and flashes the goodread LED when the LED indication of scan
API_LoadSettingsFromFile Load scanner setting from file. BOOL API_LoadSettingsFromFile { LPCTSTR filename } Parameters filename [in] the
API_Reset Reset the scanner setting to the default. BOOL API_Reset { } Parameters None Return Values Return TRUE if the operation is success
API_ResetBarData Clear the data buffer that the next new scan data can come in. void API_ResetBarData { } Parameters None Return Values None.
API_SaveSettingsToFile Save current scanner settings to file. The extension file name is “axs”. BOOL API_SaveSettingsToFile { LPCTSTR filename }
API_SaveSettingsToScanner Write the current scanner setting into scanner. BOOL API_SaveSettingsToScanner { } Parameters None Return Values R
S2K_IsLoad Check the application scan.exe(scan barcode data into key buffer) is running. BOOL S2K_IsLoad { } Parameters None Return Values The r
SDK Functions When user wants to use SDK to develop their own program, they should link DLL file or LIB file, and include header file SYSAPIAX.H. The
S2K_Load Load or unload the scan.exe. BOOL S2K_Load { BOOL bLoad, DWORD dwTimeOut } Parameters bLoad [in] To set true to load scan.
SCAN_QueryStatus Query current scanner setting. BOOL SCAN_QueryStatus { int nCommand1, int nCommand2, char *pReturn } Parameters nComm
SCAN_SendCommand Send scanner command to change scanner status. BOOL SCAN_SendCommand { int nCommand1, int nCommand2, char *pValue } Par
Scan2Key Related Functions PT_OpenScan2Key Execute scan.exe to scan barcode data into Terminal key buffer. BOOL PT_OpenScan2Key { } Parameters No
PT_CloseScan2Key Close scan.exe. void PT_CloseScan2Key { } Parameters None Return Values None. Example PT_CloseScan2Key() Requirements O
PT_SetToDefault Reset the scanner setting. All scanner setting will reset to default value. int PT_SetToDefault { } Parameters None Return Value
Scanner Related Functions PT_EnableScanner Enable scanner to scan barcode. This function creates a thread to get scan data from scanner module and st
PT_DisableScanner This function will close scanner module. void PT_DisableScanner { } Parameters None Return Values None. Example PT_Disab
PT_CheckBarcodeData Check whether there is available barcode data in system buffer. BOOL PT_CheckBarcodeData { } Parameters None Return Values T
PT_GetBarcodeData Get Barcode data and type from system buffer. BOOL PT_GetBarcodeData { UINT * uiBarType, Char * pBuffer, UINT * uiMaxBu
SYSAPIAX.DLL In this SDK, we supply SYSAPIAX.DLL which includes several functions to allow programmer to control device drivers and system functions.
Requirements OS Versions: Windows CE 5.0 and later. Header: scanapiax.h Link Library: scanapiax.lib Link DLL: scanapiax.dll Device: PT60Program
PT_SetDefault Reset the scanner setting to default value. BOOL PT_SetDefault { } Parameters None Return Values Return TRUE if the operation i
Scan Key Related Functions EnableTriggerKey This function will enable or disable scan key. DWORD EnableTriggerKey { BOOL bEnable } Parameters
GetLibraryVersion Get library version number. int GetLibraryVersion { } Parameters None Return Values The version number. If the return value is
GetTriggerKeyStatus This function will get scan key status. DWORD GetTriggerKeyStatus { } Parameters None. Return Values The return value 1 indic
PressTriggerKey This function will trigger scan key. DWORD PressTriggerKey { BOOL bPress } Parameters bPress [in] Flag that indicates whether
TriggerKeyStatus This function will get scan key press status. DWORD TriggerKeyStatus { } Parameters None. Return Values The return value 1 indic
Vibrator Related Functions VibratorOn This function turns on or off Vibration indicator DWORD VibratorOn { BOOL bOn } Parameters bOn [in] Flag
Scan Command Table Command1 Command2 Val ue 2 LED indication 0: Disable 1: Enable 5 Indication 3 Buzzer indication 0: Disable 1: Enable 7 Code ID p
Check-sum verification 1: One digit 2: Two digits 3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64
z ShowDeskTop – Display and hide all icons on desktop. z ShowExploreToolbar – Display and hide toolbar on windows explorer. z ShowTaskbar – Display
3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15
3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15
2: Expand to EAN 13 12 Expansion 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 3 Check-sum transmission 0: Disable 1: Enable 6 Truncate leading 0
Check-sum verification 1: Enable 3 Check-sum transmission 0: Disable 1: Enable 4 Max. code length 0 ~ 64 5 Min. code length 0 ~ 64 6 Truncate leadin
Max. code length 5 Min. code length 0 ~ 64 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15 8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes)
Truncate ending 8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes) 10 Format 0: Numeric 1: Full ASCII 1 Read 0: Disable 1: Enable 3 Check-sum tra
2: 5 digits 3: 2, 5 digits 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
10 Escape sequence Transmit 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 6 Truncate leading 0 ~ 15 7 Truncate ending 0 ~ 15 27 Code-16K 8 Code
8 Code ID setting 0x00 ~ 0xff ASCII code(1 or 2 bytes) 11 UCC/EAN 128 emulation 0: Disable 1: Enable 1 Read 0: Disable 1: Enable 4 Max. code length 0
Function Return Values Constant Val ue Description E_FUNC_SUCCEED 0x00000000 The function returned without error. E_FUNC_ERROR 0x00000001 The f
Audio Related Functions Audio_GetVolume This function queries the current volume setting. DWORD Audio_GetVolume { LPDWORD lpdwVolume } Parameter
Audio_SetVolume This function sets the current volume setting. DWORD Audio_SetVolume { DWORD dwVolume } Parameters dwVolume [in] Specifies a n
Commentaires sur ces manuels