Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I hope want to control Power Slider and Power Mode with WinAPI or C++ Code.

I searched in MSDN forum and other community, but I couldn't find it. Some one help me!


What I have tried:

Set to Power Plan options. But Couldn't control Power Slider setting.
Posted
Updated 30-Jun-20 15:36pm

You should dig into the Micorsoft Power Managment API and may be Managing Device Performance States has some information.

tip: if all doesnt help use a registry spy and watch which settings get changed, when you manually change some values
 
Share this answer
 
Comments
merano99 14-Jun-20 9:54am    
This is what i found in Microsoft Hardware-Dev-Center:

Customize the Windows performance power slider

https://docs.microsoft.com/de-de/windows-hardware/customize/desktop/customize-power-slider

There is no way ... from the UI, although it is possible from the cmd line (via powercfg).

Slider availability
The Windows power slider is available for AMD and Intel platforms running Windows 10, build
1709 and newer builds of Windows. It is not available on devices with ARM64 processors.
The slider will appear on a device only when the Balanced power plan, or any plan that is
derived from Balanced, is selected. There is not an option for either users or OEMs to remove
the slider UX.
in win7 pc, there not has "Power Slider", but has "Power Managment"
change setting by API like this:
PowerGetActiveScheme
PowerReadACValue
PowerWriteACValueIndex
PowerSetActiveScheme
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900