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 4.2 and later.
Header:
sysapiax.h
Link Library:
sysapiax.lib
Link DLL:
sysapiax.dll
Device:
PT80
Programming Manual
14