RtfwGetWindowsEnergyPerformanceBias
RtfwGetWindowsEnergyPerformanceBias reads the current configuration for the WindowsEnergyPerformanceBias feature and fills pWindowsPerformanceBias with the value.
Syntax
bool RtfwGetWindowsEnergyPerformanceBias(
[out] unsigned int * pWindowsEnergyPerfBias
);
Parameters
[out] pWindowsEnergyPerfBias
A pointer to an unsigned integer value for the Windows Energy/Performance Bias feature. The following values are supported:
- 0 (High Performance / Low Energy Efficiency) through 15 (Low Performance / High Energy Efficiency)
- 255: the current Windows Energy/Performance Bias setting is used
You can check the status of this setting in Windows through the System Utilities screen (System Configuration > BIOS/Platform Configuration (RBSU) > Power Management > Advanced Power Options > Energy/Performance Bias).
Return Value
If the function succeeds, it returns TRUE. If the function fails, it returns FALSE and sets the last error value. Call GetLastError to obtain an error code.
Remarks
If the Subsystem is running when the RtfwGetLocalMemoryConfiguration API is called, the values returned by this function may differ from the values currently in use by the Subsystem.
Requirements
| Minimum supported version | Header | Library |
|---|---|---|
|
wRTOS 1.0 SDK |
RtfwApi.h |
RtfwApi.lib |
See Also: