Programming Manual
11
Display_QueryBacklightIntensity
This function will return the backlight intensity of external power and battery power.
DWORD Display_QueryBacklightIntensity
{
LPDWORD
lpdwACBacklight
,
LPDWORD
lpdwBatteryBacklight
}
Parameters
lpdwACBacklight
[out] The backlight intensity of external power.
lpdwBatteryBacklight
[out] The backlight intensity of battery power.
Return Values
If function succeeds, the return value is
E_FUNC_SUCCEED
. If function fails, possible return value are
E_FUNC_ERROR
,
E_FUNC_NULLPTR
.
Remarks
The parameters will be one of the values in the following table.
Backlight intensity
Backlight brightness
4
super
3
normal
2
fine
1
micro
0
off
Example
DWORD dwResult, dwValue1, dwValue2;
dwResult = Display_QueryBacklightIntensity(&dwValue1, &dwValue2);
if(dwResult != E_FUNC_SUCCEED)
AfxMessageBox(_T("Display_QueryBacklightIntensity fail"));
else
{
CString strTemp;
strTemp.Format(_T("AC backlight intensity: %d, Battery backlight intensity: %d"), dwValue1,