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 |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for