PO_EFFECTIVE_POWER_MODE_CALLBACK callback function (wdm.h)
The PO_EFFECTIVE_POWER_MODE_CALLBACK is the effective power mode callback.
Syntax
PO_EFFECTIVE_POWER_MODE_CALLBACK PoEffectivePowerModeCallback;
void PoEffectivePowerModeCallback(
PO_EFFECTIVE_POWER_MODE Mode,
VOID *Context
)
{...}
Parameters
Mode
Indicates the effective power mode the system is running in. For more information, see PO_EFFECTIVE_POWER_MODE.
Context
User-specified opaque context. This context would have been passed in at registration in PoRegisterForEffectivePowerModeNotifications.
Return value
None
Remarks
Immediately after registration, this callback is 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 11, version 24H2 |
Header | wdm.h (include Wdm.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |