PT-9230 Mobile Computer SDK Programming Manual
12
Display_QueryBacklightIntensity
To return the back-light 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.
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_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,