views:

27

answers:

1

Hi,

Is there any way to change backlight turn off TIME using programming(Preferred c# or vb.net other c++ can be used too)? I guess, may be it is changed using registry info or API.

Manually, it is done by:

Setting > Backlight (Battery Power and External Power)

Thank you

+1  A: 

Adjust the following registry keys (which is what the CPL does):

[HKEY_CURRENT_USER\ControlPanel\Backlight]`
    "UseBattery"=dword        ;if '1' turn off the backligh after "BatteryTimeout" seconds
    "UseExt"=dword:           ;if '1' turn off the backligh after "ACTimeout" seconds
    "BatteryTimeout"=dword:X  ;backlight timeout in seconds 
    "ACTimeout"=dword:Y       ;backlight timeout in seconds

Then broadcast a WM_SETTINGCHANGE message.

ctacke