Argox PT-9130 Owner's manual

PT-90 Mobile Computer SDK Programming Manual II
Table of Contents
OVERVIEW...............................................................................................................................................................................................................................2
SDKFUNCTIONS..................................................................................................................................................................................................................3
SYSAPIAX.DLL.......................................................................................................................................................................................................................4
AUDIORELATEDFUNCTIONS..................................................................................................................................................................................9
Audio_GetVolume..........................................................................................................................................................................9
Audio_SetVolume.........................................................................................................................................................................10
BATTERYRELATEDFUNCTION............................................................................................................................................................................ 11
GetBatteryStatus............................................................................................................................................................................11
DISPLAYRELATEDFUNCTIONS........................................................................................................................................................................... 13
BacklightOn...................................................................................................................................................................................13
Display_QueryBacklightIntensity..........................................................................................................................................14
GetBacklightStatus......................................................................................................................................................................16
PowerOnLCD..............................................................................................................................................................................17
SetBacklightPWM.......................................................................................................................................................................18
EnableTouchPanel......................................................................................................................................................................19
GetTouchPanelStatus.................................................................................................................................................................20
KEYPAD RELATEDFUNCTIONS...........................................................................................................................................................................21
EnablePowerButton...................................................................................................................................................................21
GetKeypadAlphaMode.............................................................................................................................................................22
SendKbdVirtualKey....................................................................................................................................................................23
SetKeypadAlphaMode..............................................................................................................................................................24
LEDRELATEDFUNCTIONS..................................................................................................................................................................................25
GetKeypadLEDStatus...............................................................................................................................................................25
GoodReadLEDOn.....................................................................................................................................................................26
KeypadLEDOn............................................................................................................................................................................27
QueryKeypadLEDIntensity.....................................................................................................................................................28
SetKeypadPWM..........................................................................................................................................................................30
SYSTEMRELATEDFUNCTIONS............................................................................................................................................................................ 31
CallSuspend...................................................................................................................................................................................31
EnableAutoConnect...................................................................................................................................................................32
RegisterAlphaKeyNotification................................................................................................................................................33
ShowChineseIME.......................................................................................................................................................................34
ShowDesktop................................................................................................................................................................................35
ShowExploreToolbar..................................................................................................................................................................36
ShowTaskbar.................................................................................................................................................................................37

PT-90 Mobile Computer SDK Programming Manual III
UnRegisterAlphaKeyNotification..........................................................................................................................................38
RegisterTriggerKeyNotification..............................................................................................................................................39
UnregisterTriggerKeyNotification.........................................................................................................................................40
VIBRATORRELATEDFUNCTIONS........................................................................................................................................................................41
VibratorOn.....................................................................................................................................................................................41
WLANRELATEDFUNCTION...............................................................................................................................................................................42
WL_Enable....................................................................................................................................................................................42
WL_Disable...................................................................................................................................................................................43
BLUETOOTHRELATEDFUNCTION.....................................................................................................................................................................44
BT_On.............................................................................................................................................................................................44
BT_Off..............................................................................................................................................................................................45
SetDiscoverMode........................................................................................................................................................................46
GetDiscoverMode.......................................................................................................................................................................47
SetSPPService...............................................................................................................................................................................48
GetSPPService.............................................................................................................................................................................49
SetFTPService..............................................................................................................................................................................50
GetFTPService.............................................................................................................................................................................51
SetFTPWriteable..........................................................................................................................................................................52
GetFTPWriteable........................................................................................................................................................................53
SetFTPShareFolder....................................................................................................................................................................54
GetFTPShareFolder..................................................................................................................................................................55
InitSearchBTDevice....................................................................................................................................................................56
FindNextBTDevice.....................................................................................................................................................................57
EndSearchBTDevice..................................................................................................................................................................59
InitSearchFTPDevice.................................................................................................................................................................60
FindFirstFTPDevice..................................................................................................................................................................61
FindNextFTPDevice..................................................................................................................................................................63
PairDevice......................................................................................................................................................................................65
UnPairDevice...............................................................................................................................................................................66
GetComInfo...................................................................................................................................................................................67
ConnectDevice.............................................................................................................................................................................69
GetConnectStatus........................................................................................................................................................................70
GetSPPClientChannel...............................................................................................................................................................71
FindFirstFTPFile........................................................................................................................................................................72
FindNextFTPFile........................................................................................................................................................................73
GetFTPFile....................................................................................................................................................................................74
PutFTPFile....................................................................................................................................................................................75
CreateFTPFolder........................................................................................................................................................................76
DeleteFTPFolder........................................................................................................................................................................77

PT-90 Mobile Computer SDK Programming Manual IV
DeleteFTPFile..............................................................................................................................................................................78
CAMERARELATEDFUNCTION............................................................................................................................................................................79
Camera_On..................................................................................................................................................................................79
Camera_Off...................................................................................................................................................................................80
SetPreviewSize..............................................................................................................................................................................81
GetPreviewSize.............................................................................................................................................................................82
EnablePreview..............................................................................................................................................................................83
SetStillCaptureSize.......................................................................................................................................................................84
GetStillCaptureSize......................................................................................................................................................................85
StartStillCapture............................................................................................................................................................................86
SetFlash...........................................................................................................................................................................................87
GetFlash..........................................................................................................................................................................................88
SetDarkMode................................................................................................................................................................................89
GetDarkMode..............................................................................................................................................................................90
SetInvert...........................................................................................................................................................................................91
GetInvert..........................................................................................................................................................................................92
GPRSRELATEDFUNCTION..................................................................................................................................................................................93
GPRS_On......................................................................................................................................................................................93
GPRS_Off.......................................................................................................................................................................................94
GetGPRSPowerStatus..............................................................................................................................................................95
SendATCommand......................................................................................................................................................................96
GetATResponse............................................................................................................................................................................97
GetIMEINumber.........................................................................................................................................................................98
GetIMSINumber..........................................................................................................................................................................99
GetModuleInfo...........................................................................................................................................................................100
GetSignalQuality........................................................................................................................................................................101
ConnectRAS................................................................................................................................................................................102
DisconnectRAS...........................................................................................................................................................................103
GetRASConnStatus...................................................................................................................................................................104
CreateRASEntry.........................................................................................................................................................................105
DeleteRASEntry.........................................................................................................................................................................106
ChangeRASEntryName.........................................................................................................................................................107
ChangeRASEntryProperty....................................................................................................................................................108
GetRASEntryProperty.............................................................................................................................................................109
GetRASEntryCount..................................................................................................................................................................110
MenuRASEntries........................................................................................................................................................................111
GetPINCounter..........................................................................................................................................................................112
GetPINStatus...............................................................................................................................................................................113
SetPINLock..................................................................................................................................................................................114

PT-90 Mobile Computer SDK Programming Manual V
GetPINLockStatus.....................................................................................................................................................................115
CheckPINCode..........................................................................................................................................................................116
CheckPUKCode.......................................................................................................................................................................117
ChangePINCode.......................................................................................................................................................................118
ReadPhonebook.........................................................................................................................................................................119
WritePhonebook........................................................................................................................................................................120
DeletePhonebook......................................................................................................................................................................121
ReadMultiPhonebook..............................................................................................................................................................122
GetPhonebookTotal..................................................................................................................................................................124
GetPhoneMaxLength..............................................................................................................................................................125
SendSMS.......................................................................................................................................................................................126
ReadSMS......................................................................................................................................................................................127
DeleteSMS....................................................................................................................................................................................129
ReadMultiSMS...........................................................................................................................................................................130
WriteStorageSMS......................................................................................................................................................................132
SendStorageSMS.......................................................................................................................................................................133
GetSMSTotal...............................................................................................................................................................................134
SetSMSCentre.............................................................................................................................................................................135
GetSMSCentre............................................................................................................................................................................136
SMS_Register..............................................................................................................................................................................137
SMS_UnRegister.......................................................................................................................................................................138
GPS..............................................................................................................................................................................................................................139
BLUETOOTHSTRUCTURE....................................................................................................................................................................................140
CONNECT_INFOStructure................................................................................................................................................140
FTP_FILEStructure................................................................................................................................................................141
GPRSSTRUCTURE................................................................................................................................................................................................142
RAS_ENTRYStructure............................................................................................................................................................142
PHONEBOOK_INFOStructure.......................................................................................................................................144
SMS_INFOStructure...............................................................................................................................................................145
RFID.DLL................................................................................................................................................................................................................................146
RFIDRELATEDFUNCTION.................................................................................................................................................................................148
OpenComPort............................................................................................................................................................................148
CloseComPort............................................................................................................................................................................149
GetFWVersion............................................................................................................................................................................150
APIVersion....................................................................................................................................................................................151
SetWorkingType..........................................................................................................................................................................152
AntennaContro...........................................................................................................................................................................153
Inventory15693...........................................................................................................................................................................154

PT-90 Mobile Computer SDK Programming Manual VI
ReadSingleBlock........................................................................................................................................................................155
WriteSingleBlock........................................................................................................................................................................156
WriteAFI........................................................................................................................................................................................157
WriteDSFID................................................................................................................................................................................158
LockAFI........................................................................................................................................................................................159
LockDSFID.................................................................................................................................................................................160
LockBlock.....................................................................................................................................................................................161
TagSystemInfo.............................................................................................................................................................................162
TagStayQuiet................................................................................................................................................................................163
TagSelect.......................................................................................................................................................................................164
TagResetToReady......................................................................................................................................................................165
OpenCard14443A....................................................................................................................................................................166
ReadMifareBlock.......................................................................................................................................................................167
WriteMifareBlock.......................................................................................................................................................................168
ReadUltraLightBlock...............................................................................................................................................................169
WriteUltraLightBlock...............................................................................................................................................................170
GetUid14443B...........................................................................................................................................................................171
SRIX4KChipID..........................................................................................................................................................................172
SRIX4KReadBlock...................................................................................................................................................................173
SRIX4KWriteBlock...................................................................................................................................................................174
RFIDREQUESTFLAGS.........................................................................................................................................................................................175
SRIX4KFLOWCHART........................................................................................................................................................................................176
SCANAPIAX.DLL.............................................................................................................................................................................................................177
API_SCANRELATEDFUNCTIONS.................................................................................................................................................................180
API_Register...............................................................................................................................................................................180
API_Unregister..........................................................................................................................................................................181
API_GetBarData......................................................................................................................................................................182
API_GetBarDataLength........................................................................................................................................................184
API_GetBarType.......................................................................................................................................................................185
API_GetError.............................................................................................................................................................................186
API_GetSysError......................................................................................................................................................................187
API_GoodRead.........................................................................................................................................................................188
API_LoadSettingsFromFile..................................................................................................................................................189
API_Reset.....................................................................................................................................................................................190
API_ResetBarData...................................................................................................................................................................191
API_SaveSettingsToFile..........................................................................................................................................................192
API_SaveSettingsToScanner.................................................................................................................................................193
S2K_IsLoad.................................................................................................................................................................................194

PT-90 Mobile Computer SDK Programming Manual VII
S2K_Load....................................................................................................................................................................................195
SCAN_QueryStatus..................................................................................................................................................................196
SCAN_SendCommand...........................................................................................................................................................197
SCAN_ResumeSystem............................................................................................................................................................198
SCAN_BatchSetting.................................................................................................................................................................199
SCAN_BatchRead....................................................................................................................................................................200
SCAN2KEYRELATEDFUNCTIONS...................................................................................................................................................................201
PT_OpenScan2Key.................................................................................................................................................................201
PT_CloseScan2Key.................................................................................................................................................................202
PT_SetToDefault........................................................................................................................................................................203
SCANNERRELATEDFUNCTIONS.......................................................................................................................................................................204
PT_EnableScanner...................................................................................................................................................................204
PT_DisableScanner.................................................................................................................................................................205
PT_CheckBarcodeData.........................................................................................................................................................206
PT_GetBarcodeData...............................................................................................................................................................207
PT_SetDefault.............................................................................................................................................................................209
SCANKEYRELATEDFUNCTIONS.....................................................................................................................................................................210
EnableTriggerKey.....................................................................................................................................................................210
GetLibraryVersion.....................................................................................................................................................................211
GetTriggerKeyStatus................................................................................................................................................................212
PressTriggerKey.........................................................................................................................................................................213
TriggerStatus................................................................................................................................................................................214
SCANSTRUCTURE..................................................................................................................................................................................................215
ScannerSettingStructure..........................................................................................................................................................215
GeneralSettingStructure..........................................................................................................................................................218
Code11_SettingStructure........................................................................................................................................................219
Code39_SettingStructure.......................................................................................................................................................220
Code93_SettingStructure.......................................................................................................................................................221
Code128_SettingStructure.....................................................................................................................................................222
Codabar_SettingStructure.....................................................................................................................................................223
EAN8_SettingStructure...........................................................................................................................................................224
EAN13_SettingStructure........................................................................................................................................................225
Industrial25_SettingStructure...............................................................................................................................................226
Interleaved25_SettingStructure............................................................................................................................................227
MSI_SettingStructure...............................................................................................................................................................228
UK_SettingStructure................................................................................................................................................................229
Telepen_SettingStructure........................................................................................................................................................230
UPCA_SettingStructure.........................................................................................................................................................231
UPCE_SettingStructure.........................................................................................................................................................232

PT-90 Mobile Computer SDK Programming Manual VIII
Matrix25_SettingStructure.....................................................................................................................................................233
UEGeneral_SettingStructure................................................................................................................................................234
IATA25_SettingStructure........................................................................................................................................................235
Trioptic_SettingStructure........................................................................................................................................................236
RSS_SettingStructure...............................................................................................................................................................237
SCANCOMMANDTABLE.......................................................................................................................................................................................238
FUNCTIONRETURNVALUES.............................................................................................................................................................................246

PT-90 Mobile Computer SDK Programming Manual 2
Overview
The Argox PT-90 Mobile Computer Software Developer Kit (SDK) Programming Manual is
prepared to assist programmers on developing application programs using Argox PT-90 Mobile
Computers under Microsoft® Windows® CE6.0 Operating System. It gives all the details needed
to call functional subroutines controling the devices on the Argox PT-90 Mobile Computer or
access value-added devices on board such as Scanning and Wireless module.
This Programming Manual is organized as two major sections, one for the system related functions
and the other for value-added scanning functions with the following information:
Argox Mobile Computer standard Application Programming Interface (API) Definitions
for system related functions:
Audio
Display
Keypad
Led and Vibrator Indicators
Battery Status
System Settings
Bluetooth
WLAN
Argox Scanning module Application Programming Interface (API) Definitions
API definitions illustrate how to call a given functional subroutine. The API definitions are
structed with information including: prototypes, parameters, return values, examples, and
requirements of each API. The “Requirements” section gives information on whether or not a
device supports a specific API function and the files to be included.

PT-90 Mobile Computer SDK Programming Manual 3
SDK Functions
When using SDK to develop their own application program, the programmer should link DLL file
or LIB file, then, include header file SYSAPIAX.H.
The following two examples are given to show how to use LIB file and DLL file while developing
an application program. We will use Visual Studio 2005 to illustrate.
Example 1: Using LIB file.
First, programmer should include sysapiax.lib in the application 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("SetBacklightPWM"));
m_SetBacklightPWM(0, 0);
FreeLibrary(dllHandle);
}

PT-90 Mobile Computer SDK Programming Manual 4
SYSAPIAX.DLL
In PT-90 SDK, we provide SYSAPIAX.DLL which includes several functions to allow
programmer to control device drivers and system functions. Programmer can use WINCE develop
tool like Visual Studio 2005 to develop application programs. Descriptions of all these functions
are given below.
Audio Related Functions
Audio_GetVolume –Query current volume setting.
Audio_SetVolume –Set level of audio volume.
Battery Related Function
GetBatteryStatus –Gets main battery status.
Display Related Functions
BacklightOn –Turn ON or OFF screen backlight.
Display_QueryBacklightIntensity –Query back-light intensity.
GetBacklightStatus –Gets screen backlight status.
PowerOnLCD –Turn ON or OFF the power of LCD.
SetBacklightPWM –Adjusts screen back-light brightness.
EnableTouchPanel –ENABLE or DISABLE touch panel.
GetTouchPanelStatus –Get touch panel status.
KeyPad Related Functions
EnablePowerButton –ENABLE or DISABLE Power button.
GetAlphaMode –Get the current keypad input MODE.
SendKbdVisualKey –Sends a virtual key to key buffer.
SetAlphaMode –Change keypad input MODE.
LED Related Functions
GetKeypadLEDStatus –Gets keypad backlight LED status.
GoodReadLEDOn –Turn ON or OFF good read LED.
KeypadLEDOn –Turn ON or OFF keypad backlight LED.
QueryKeypadLEDIntensity –Query keypad backlight LED brightness.
SetKeypadPWM –Adjusts keypad backlight LED brightness.

PT-90 Mobile Computer SDK Programming Manual 5
System Related Functions
CallSuspend –Enter SUSPEND mode.
EnableAutoConnect –Turn auto-connect ON or OFF.
RegisterAlphaKeyNotification –Register a request to send a prompt message
when the ALPHA key is pressed.
ShowChineseIME –DISPLAY or HIDE the Chinese IME.
ShowDeskTop –DISPLAY or HIDE all icons on desktop.
ShowExploreToolbar –DISPLAY or HIDE toolbar on windows explorer.
ShowTaskbar –DISPLAY or HIDE taskbar.
UnregisterAlphaKeyNotification –UNREGISTER prompt message request.
RegisterTriggerKeyNotification –Register a request to send a prompt message
when the trigger key is pressed.
UnregisterTriggerKeyNotification –UNREGISTER prompt message request for
trigger key.
Vibrator Related Functions
VibratorOn –ON or OFF vibration indicator.
WLAN Related Functions
WL_Enable –Enable WLAN.
WL_Disable –Disable WLAN.
BlueTooth Related Functions
BT_On –Enable Bluetooth.
BT_Off –Disable Bluetooth.
SetDiscoverMode –Enable/Disable the terminal is discoverable.
GetDiscoverMode –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 share folder in terminal.
InitSearchBTDevice –Initial search information.
FindNextBTDevice –retrieves the results of an Bluetooth device.

PT-90 Mobile Computer SDK Programming Manual 6
EndSearchBTDevice –frees the search handle.
InitSearchFTPDevice –Initial search the device supported FTP service.
FindFirstFTPDevice –Get first device supported FTP service position.
FindNextFTPDevice –Get next device supported FTP service position.
PairDevice –Pair with device.
UnPairDevice –Unpair with device.
GetComInfo –Get com identifier index and amount.
ConnectDevice –Connect to Bluetooth device for SPP or FTP.
GetConnectStatus –Query the device connected status.
GetSPPClientChannel –Get SPP channel.
FindFirstFTPFile –Get first file information from share folder in connected
device.
FindNextFTPFile –Get next file information from share folder in connected
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.
Camera Related Functions
Camera_On –Enable Camera.
Camera_Off –Disable Camera.
SetPreviewSize –Set preview window x-axis coordinate、y-axis coordinate、
width、height.
GetPreviewSize –Get preview window x-axis coordinate、y-axis coordinate、
width、height.
EnablePreview –Enable/Disable preview window.
SetStillCaptureSize –Set still capture image pixel.
GetStillCaptureSize –Get still capture image pixel.
StartStillCapture –Start execute still capture active.
SetFlash –Enable/Disable flash light.
GetFlash –Query flash light status.
SetDarkMode –Enable/Disable dark mode.
GetDarkMode –Query dark mode status.
SetInvert –Set media stream invert, include flip、mirror.
GetInvert –Get media stream invert, include flip、mirror.

PT-90 Mobile Computer SDK Programming Manual 7
GPRS Related Functions
GPRS_On –Enable GPRS.
GPRS_Off –Disable GPRS.
GetGPRSPowerStatus –Query GPRS current power status.
SendATCommand –Send AT command and verify required response.
GetATResponse –Get response from module buffer.
GetIMEINumber –Query IMEI number.
GetIMSINumber –Query IMSI number.
GetModuleInfo –Query module information.
GetSignalQuality –Query signal strength of GSM/GPRS network.
ConnectRAS –Establishes a RAS connection.
DisconnectRAS –Disconnect current RAS connection.
GetRASConnStatus –Query RAS connection status.
CreateRASEntry –Create a new RAS entry.
DeleteRASEntry –Delete a RAS entry.
ChangeRASEntryName –Change RAS entry name.
ChangeRASEntryProperty –Change RAS entry property.
GetRASEntryProperty –Query RAS entry property.
GetRASEntryCount –Query RAS entry count.
MenuRASEntries –Menu all RAS entries, and get specified entry name.
GetPINCounter –Query still available count for entering the currently required
password.
GetPINStatus –Query current authentication code status.
SetPINLock –Set PIN code lock or unlock.
GetPINLockStatus –Query the PIN code lock status.
CheckPINCode –Enter PIN code passwords, and check correctness.
CheckPUKCode –Enter PUK code passwords, and check correctness.
ChangePINCode –Allows defining new PIN code password.
ReadPhonebook –Read a phonebook entry.
WritePhonebook –Write a phonebook entry.
DeletePhonebook –Delete a phonebook entry.
ReadMultiPhonebook –Read multitude phonebook entries.
GetPhonebookTotal –Query phonebook entry amount, include used、total.
GetPhoneMaxLength –Query maximum length of number field and text field.
SendSMS –Send a SMS message.
ReadSMS –Read a SMS message.
DeleteSMS –Delete a SMS message.

PT-90 Mobile Computer SDK Programming Manual 8
ReadMultiSMS –Read multitude SMS messages.
WriteStorageSMS –Write a SMS message to memory storage.
SendStorageSMS –Send a SMS message from memory storage.
GetSMSTotal –Query SMS message amount, include used、total.
SetSMSCentre –Set phone number of SMS centre.
GetSMSCentre –Get phone number of SMS centre.
SMS_Register –Register the application to SYSAPIAX.dll.
SMS_UnRegister –Un-register the application from SYSAPIAX.dll.
Bluetooth Structure
CONNECT_INFO Structure –CONNECT_INFO Information used by
ConnectDevice.
FTP_FILE Structure –FTP_FILE Information used by FindFirstFTPFile and
FindNextFTPFile.
GPRS Structure
RAS_ENTRY Structure –RAS_ENTRY Information used by CreateRASEntry、
ChangeRASEntryProperty and GetRASEntryProperty.
PHONEBOOK_INFO Structure –PHONEBOOK_INFO Information used by
ReadMultiPhonebook.
SMS_INFO Structure –SMS_INFO Information used by ReadMultiSMS.

PT-90 Mobile Computer SDK Programming Manual 9
AudioRelatedFunctions
Audio_GetVolume
Toquerythecurrentaudiovolumelevelsetting.
DWORDAudio_GetVolume
{
LPDWORDlpdwVolume
}
Parameters
lpdwVolume
[out]Thecurrentvolumelevelsetting.
Returned Values
Ifthisactionsucceeds,thereturned valueisE_FUNC_SUCCEED.Ifthisactionfails,thereturned valueis
E_FUNC_ERROR.
Example
DWORDdwResult,dwVolume;
dwResult=Audio_GetVolume(&dwVolume);
if(dwResult!=E_FUNC_SUCCEED)
AfxMessageBox(_T("Audio_GetVolumefail"));
else
{
CStringstrTemp;
strTemp.Format(_T("Volume: %d"),dwVolume);
AfxMessageBox(strTemp);
}
Requirements
OSVersions:WindowsCE6.0 or beyond.
Header:sysapiax.h
LinkLibrary:sysapiax.lib
LinkDLL:sysapiax.dll
Device:PT90

PT-90 Mobile Computer SDK Programming Manual 10
Audio_SetVolume
Tosettheaudiovolumelevel.
DWORDAudio_SetVolume
{
DWORDdwVolume
}
Parameters
dwVolume
[in]Specifiesanewvolumelevelsetting.Thedefaultlevelis0x99999999.
Returned Values
Ifthisactionsucceeds,thereturned valueisE_FUNC_SUCCEED.Ifthisactionfails,thereturned valueis
E_FUNC_ERROR.
Example
DWORDdwResult,dwVolume;
dwVolume=0x11111111;
dwResult=Audio_SetVolume(dwVolume);
if(dwResult!=E_FUNC_SUCCEED)
AfxMessageBox(_T("Audio_SetVolumefail"));
Requirements
OSVersions:WindowsCE6.0 orbeyond
Header:sysapiax.h
LinkLibrary:sysapiax.lib
LinkDLL:sysapiax.dll
Device:PT90

PT-90 Mobile Computer SDK Programming Manual 11
BatteryRelatedFunction
GetBatteryStatus
Togetmainbatterystatus.
intGetBatteryStatus
{
}
Parameters
None.
Returned Values
Thereturned valuecanbeoneofthevaluesinthetablebelow.
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;

PT-90 Mobile Computer SDK Programming Manual 12
case3:
AfxMessageBox(_T("BatteryCharging"));
break;
case4:
AfxMessageBox(_T("NoBattery"));
break;
case5:
AfxMessageBox(_T("BatteryUnknown"));
break;
}
Requirements
OSVersions:WindowsCE6.0orbeyond
Header:sysapiax.h
LinkLibrary:sysapiax.lib
LinkDLL:sysapiax.dll
Device:PT90

PT-90 Mobile Computer SDK Programming Manual 13
DisplayRelatedFunctions
BacklightOn
ToturnONorOFFtheLCDscreenback-light.
DWORDBacklightOn
{
BOOLbOn
}
Parameters
bOn
[in]FlagthatindicateswhethertoturnONscreenback-light(TRUE)orturnOFFscreen
back-light(FALSE).
Returned Values
Ifthisactionsucceeds,thereturned valueisE_FUNC_SUCCEED.Ifthisactionfails,thereturned valuesare
E_FUNC_ERROR, E_FUNC_PAR_ERROR.
Remarks
AfterthisactionturningONorOFFthescreenback-light,theback-lightwillbealwaysONorOFF.Theback-light
settingof displaypropertiesincontrolpaneldoesnotworkuntiltheterminalbeenreseted.
Example
DWORDdwResult;
dwResult=BacklightOn(TRUE);
if(dwResult!=E_FUNC_SUCCEED)
AfxMessageBox(_T("BacklightOnfail"));
Requirements
OSVersions:WindowsCE6.0 orbeyond.
Header:sysapiax.h
LinkLibrary:sysapiax.lib
LinkDLL:sysapiax.dll
Device:PT90
Table of contents
Other Argox Handheld manuals