EFFECTIVE_POWER_MODE_CALLBACK function (powersetting.h)
Function class for effective power mode callback.
Syntax
void EFFECTIVE_POWER_MODE_CALLBACK(
EFFECTIVE_POWER_MODE Mode,
VOID *Context
);
Parameters
Mode
Indicates the effective power mode the system is running in
Context
User-specified opaque context. This context would have been passed in at registration in PowerRegisterForEffectivePowerModeNotifications.
Return value
None
Remarks
Immediately after registration, this callback will be invoked with the current value of the power setting. If the registration occurs while the power setting is changing, you may receive multiple callbacks; the last callback is the most recent update.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | powersetting.h |
Library | Powrprof.lib |
DLL | Powrprof.dll |