Querykeypadledintensity – Argox PT-9130 User Manual

Page 35

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 28

QueryKeypadLEDIntensity

To return the Keypad LED Intensity Setting when using external power and using battery power.

DWORD QueryKeypadLEDIntensity

{

LPDWORD

lpdwACKeypadLED

,

LPDWORD

lpdwBatteryKeypadLED

}

Parameters

lpdwACKeypadLED

[out] The Keypad LED Intensity Setting using external power.

lpdwBatteryKeypadLED

[out] The Keypad LED Intensity Setting using 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 table below.

Keypad LED Intensity

Keypad LED Brightness

1

on

0

off

Example

DWORD dwResult, dwValue1, dwValue2;

dwResult = Display_QueryKeypadLEDIntensity(&dwValue1, &dwValue2);

if(dwResult != E_FUNC_SUCCEED)

AfxMessageBox(_T("QueryKeypadLEDIntensity fail"));

else

{

CString strTemp;

strTemp.Format(_T("AC Keypad LED intensity: %d, Battery Keypad LED intensity: %d"), dwValue1,

dwValue2);

AfxMessageBox(strTemp);

}

Advertising