Rediger

Del via


Backlight Control Interface

The backlight control interface is a standardized IOCTL interface for controlling the brightness of the LCD backlight.

Applications that require programmatic control of the backlight brightness or provide controls for the user to do so should use this interface rather than a proprietary interface; otherwise, the system cannot query the current hardware brightness and may become unsynchronized.

The first step is to query the device for the supported brightness using the IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS control code. This operation returns a buffer that specifies the available brightness levels. Next, you can query the device for the current display brightness using the IOCTL_VIDEO_QUERY_DISPLAY_BRIGHTNESS control code. This operation returns the current settings for alternating current (AC) brightness, direct current (DC) brightness, and the power state.

To change the display brightness, use the IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS control code. You can set the AC brightness, the DC brightness, or both.

About Power Management