PMExt_PMAfterNewDeviceState (Compact 2013)

3/26/2014

This function is called by Power Manager to indicate that a device has entered a new power state.

Syntax

VOID PMExt_PMAfterNewDeviceState
    DWORD dwExtContext,
    LPCTSTR lpNewStateName,
    CEDEVICE_POWER_STATE oldDx,
    CEDEVICE_POWER_STATE actualDx
};

Parameters

  • dwExtContext
    [in] Context value returned after PME initialization by PMExt_Init.
  • lpNewStateName
    [in] Names the new device power state.

Return Value

None.

Remarks

This callback is used by Power Manager to indicate that a device has entered a new power state. The Power Management Extension (PME) can act upon this call to perform any desired actions when the device transitions to the specified power state.

Warning

Power Management Extensions execute within the context of the core Power Manager, and can have a significant effect on overall system performance and security. Errors in a PME can block the core Power Manager thread indefinitely; this can cause the system to stop responding. Performance issues in a PME can harm overall system performance. Security vulnerabilities in a PME can increase a system's vulnerability to malicious attacks.

Requirements

Header

Pmext.h

See Also

Reference

Power Management Functions
CEDEVICE_POWER_STATE
PMExt_PMBeforeNewDeviceState