// wdm.h
PO_EFFECTIVE_POWER_MODE_CALLBACK PoEffectivePowerModeCallback;
VOID PoEffectivePowerModeCallback(
PO_EFFECTIVE_POWER_MODE Mode,
VOID *Context
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The PO_EFFECTIVE_POWER_MODE_CALLBACK is the effective power mode callback.
ModeIndicates the effective power mode the system is running in. For more information, see PO_EFFECTIVE_POWER_MODE.
ContextUser-specified opaque context. This context would have been passed in at registration in PoRegisterForEffectivePowerModeNotifications.
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.
PoRegisterForEffectivePowerModeNotifications
PoUnregisterFromEffectivePowerModeNotifications