如何设置最小的值(最大值)的处理器状态 [英] how can i set the value of Minimum (Maximum) Processor state

查看:2607
本文介绍了如何设置最小的值(最大值)的处理器状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在win7下,打开控制面板 - >电源选项 - >高级设置 - >处理器电源管理

Under Win7, open Control Panel -> Power Options -> Advanced Settings->Processor power management.

您可以看到最低处理器状态,最大处理器状态。
我已经得到使用C#POWERCFG命令的值。
现在,我想设置由C#处理器的状态值。
对于例如旧值是5%,执行PROGRAME,更新值至10%。
我有搜索POWERCFG帮助文档,有没有这样的命令来做到这一点。

you can see Minimum Processor state, Maximum Processor state. I have get the value by powercfg command using C#. Now,I want to set the value of Processor state by C#. For example the old value is 5%,execute the programe,update the value to 10%. I have search the powercfg help document,there are no such command to do this.

我怎样才能做到这一点?

How can I achieve this?

推荐答案

我只能建议调用的 WriteProcessorPwrScheme 使用的PInvoke。 的Windows API代码包为.NET 具有一定的电源管理功能,但可能不是这一个。

I could only recommend calling WriteProcessorPwrScheme using PInvoke. Windows API Code Pack for .NET has some power management functions but probably not this one.

这篇关于如何设置最小的值(最大值)的处理器状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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