以编程方式检索Windows Mobile设备的背光和关闭时间设置. [英] Programmaticaly retrieve the backlight and time to off settings for Windows Mobile device.

查看:83
本文介绍了以编程方式检索Windows Mobile设备的背光和关闭时间设置.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取背光和电源的设备设置.如果设备未使用[XX秒],我特别需要设置/系统/背光/电池电源和外部/关闭背光;如果设备不使用[XX分钟],则需要设置/系统/电源/高级/关闭设备.如果有人可以指出我该怎么做或指向reg文件,则将信息存储在其中(如果保存该信息的话)会很棒. Thanx

I need to get the device settings for the backlight and power. I specifically need the Settings/System/Backlight/Battery Power and External/Turn off backlight if device not used for [XX sec] and the Settings/System/Power/Advanced/Turn off device if not used for [XX minutes]. If someone could point me out how to do it or to the reg file the info is stored in if that is where it is kept that would be great. Thanx

推荐答案

OK,因此,如果设备未使用[XX秒, ].它们位于HKCU \ ControlPanel \ Backlight \ ACTimeout(对于外部)和BatteryTimeout(对于电池电源). DWORD值以整秒(而不是毫秒)设置.所以一分钟等于60.

如果[XX分钟]未使用,我还找到了设置/系统/电源/高级/关闭设备的注册表项,包括电池电源和外部电源.它们位于HKLM \ System \ CurrentControlSet \ Control \ Power \ Timeouts \ ACSuspendTimeout(对于外部)和BattSuspendTimeout(对于电池电源). DWORD值以整秒(而不是毫秒)设置.一分钟等于60.

希望这对其他可能也在搜索它们的人有所帮助.
OK, so I have found the registry keys for Settings/System/Backlight/Battery Power and External/Turn off backlight if device not used for [XX sec]. They are located at HKCU\ControlPanel\Backlight\ACTimeout (for External) and BatteryTimeout (for Battery Power). DWORD values are set in whole seconds (not milliseconds). So a minute is a value of 60.

I have also found the registry keys for Settings/System/Power/Advanced/Turn off device if not used for [XX minutes], both for Battery Power and External. They are located at HKLM\System\CurrentControlSet\Control\Power\Timeouts\ACSuspendTimeout (for External) and BattSuspendTimeout (for Battery Power). DWORD values are set in whole seconds (not milliseconds). So a minute is a value of 60.

Hope this helps anyone else whom may be searching for them also.


这篇关于以编程方式检索Windows Mobile设备的背光和关闭时间设置.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆