Hardware manual

UPS25 API Manual for Windows 2000/XP/Vista
10
DeviceIoControl( hDevice,
UPS25_SET_NODISCONNECTBATT,
NULL,
0,
NULL,
0,
&BytesReturned,
NULL);
UPS25_SET_POWER_DOWN_CONTROL
Description:
This IOCTL alters the state of the backlight switch.
Parameters:
Input: An 8 Bit value:
BIT 0: 0 – Backlight is disabled.
1 – Backlight is enabled.
Output: None
Example:
UCHAR PowerDown;
ULONG BytesReturned;
PowerDown = 1; // Enable the backlight
DeviceIOControl( hDevice,
UPS25_SET_POWER_DOWN_CONTROL,
&PowerDown,
sizeof(PowerDown),
NULL,
0,
&BytesReturned,
NULL);