在 Windows 7 中通过注册表而不是控制面板更改电源方案设置 [英] Changing Power Scheme settings through Registry instead of Control Panel in Windows 7

查看:51
本文介绍了在 Windows 7 中通过注册表而不是控制面板更改电源方案设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Windows 7 中通过注册表而不是控制面板更改电源方案的设置(例如,在 45 分钟后而不是 30 分钟后进入睡眠状态).我也想变热以同样的方式关闭.

I'd like to change the settings of a power scheme (say, go to sleep after 45 minutes instead of 30) through the registry, rather than the control panel, in Windows 7. I'd also like to turn hot keys off the same way.

有什么建议我怎么做吗?

Any suggestions how I do it?

推荐答案

由于电源管理架构(方案等)的复杂性,我怀疑这不是微不足道的.总是最好通过抽象的API 而不是摆弄底层配置数据.

I suspect this would be non-trivial due to the complexity of the power management architecture (schemes etc) & its always better to go through an abstracted API rather than fiddling with the underlying configuration data.

如果您不想使用 API,则有 powercfg 命令行工具.

If you dont want to use the API there is the powercfg command line tool.

这篇关于在 Windows 7 中通过注册表而不是控制面板更改电源方案设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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