PT-9230 Mobile Computer SDK Programming Manual
16
SetBacklightPWM
To adjusts the LCD screen back-light brightness.
DWORD
SetBacklightPWM
{
int
nACPowerPercent
,
int
nBatteryPercent
}
Parameters
nACPowerPercent,nBatteryPercent
[in] One is the brightness level setting when the terminal is using AC power and the other is the brightness
level setting when the terminal is using battery power. These two settings must be one of the values in the
table below.
nPercent
Backlight brightness
100
super
75
normal
50
fine
25
micro
0
off
Returned Values
If this action succeeds, the returned value is
E_FUNC_SUCCEED
. If this action fails, possible returned values are
E_FUNC_ERROR
,
E_FUNC_PAR_ERROR
.
Remarks
The Back-light Setting function in the Control Panel sets LCD screen back-light brightness level. Calling this
function will also change the brightness level in Back-light Setting. You can use this function or Back-light Setting
function in the Control Panel to adjust back-light brightness level.
Example
DWORD dwResult = SetBacklightPWM(100,100);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("SetBacklightPWM fail"));
Requirements
OS Versions:
Windows CE 6.0 or beyond.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT90