ReadProcessorPwrScheme function
[ReadProcessorPwrScheme is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. See Remarks.]
Applies to: desktop apps only
Retrieves the processor power policy settings for the specified power scheme.
Syntax
BOOLEAN WINAPI ReadProcessorPwrScheme( __in UINT uiID, __out PMACHINE_PROCESSOR_POWER_POLICY pMachineProcessorPowerPolicy );
Parameters
- uiID [in]
-
The index of the power scheme to be read.
- pMachineProcessorPowerPolicy [out]
-
A pointer to a MACHINE_PROCESSOR_POWER_POLICY structure that receives the processor power policy settings.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The MACHINE_PROCESSOR_POWER_POLICY structure contains processor power policy settings for use while the system is running on AC power or battery power.
Starting with Windows Vista, power management configuration of the system's processor is controlled through the GUID_PROCESSOR_SETTINGS_SUBGROUP power settings subgroup. Use the PowerEnumerate function to enumerate individual settings.
For more information on using PowrProf.h, see Power Schemes.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 2/7/2012