PT-90 Mobile Computer SDK Programming Manual
30
SetKeypadPWM
To adjusts Keypad LED Brightness.
DWORD
SetKeypadPWM
{
int
nACPowerPercent
,
int
nBatteryPercent
}
Parameters
nACPowerPercent,nBatteryPercent
[in] One is to set Keypad LED Brightness setting when using AC power and the other is to set Keypad
LED Brightness setting when using battery. These two parameters must be one of the values in the table
below.
nPercent
keypad LED brightness
100
on
0
off
Returned Values
If this action succeeds, the returned value is
. If this action fails, possible returned values are
Remarks
The Timeout&Brightness function in Control Panel can set Keypad LED Brightness. Calling this function will
also change the Keypad LED Brightness in Timeout&Brighness function. Programmer can use either this
function or Timeout&Brightness function in Control Panel to adjust the Keypad LED Brightness level.
Example
DWORD dwResult = SetKeypadPWM(100,100);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("SetKeypadPWM fail"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90