Click here to Skip to main content
14,603,787 members
Rate this:
Please Sign up or sign in to vote.
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.
Updated 30-Jun-20 15:36pm
Rate this:
Please Sign up or sign in to vote.

Solution 1

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
merano99 14-Jun-20 9:54am
This is what i found in Microsoft Hardware-Dev-Center:

Customize the Windows performance 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.
Rate this:
Please Sign up or sign in to vote.

Solution 2

in win7 pc, there not has "Power Slider", but has "Power Managment"
change setting by API like this:

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100