Under Win7, open Control Panel -> Power Options -> Advanced Settings->Processor power management.
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?
I could only recommend calling WriteProcessorPwrScheme using PInvoke. Windows API Code Pack for .NET has some power management functions but probably not this one.