
Programming Manual
16
SetBacklightPWM
This function adjusts screen backlight brightness.
DWORD
SetBacklightPWM
{
int
nACPowerPercent
,
int
nBatteryPercent
}
Parameters
nACPowerPercent,nBatteryPercent
[in] One is brightness setting using AC power and the other is brightness setting
using battery. These two members must be one of the values in the following
table.
nPercent
Backlight brightness
100
super
75
normal
50
fine
25
micro
0
off
Return Values
If function succeeds, the return value is
E_FUNC_SUCCEED
. If function fails,
possible return value are
E_FUNC_ERROR
,
E_FUNC_PAR_ERROR
.
Remarks
The Backlight Setting program in Control Panel sets screen backlight brightness.
Called this function will also change the brightness in Backlight Setting. You can use
this function or Backlight Setting program in Control Panel to adjust backlight
brightness.
Example
DWORD dwResult = SetBacklightPWM(100,100);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("SetBacklightPWM fail"));
Requirements
OS Versions:
Windows CE 5.0 and later.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PA60
Summary of Contents for PA-60
Page 1: ...PA 60 Mobile Computer Programming Manual DOC NO UM PA605 02 June 2012 Version 1 0 ...
Page 57: ...Programming Manual 53 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 72: ...Programming Manual 68 Link Library sysapiax lib Link DLL sysapiax dll Device PA60 ...
Page 91: ...Programming Manual 87 Link Library scanapiax lib Link DLL scanapiax dll Device PA60 ...