次の方法で共有


PMExt_EventNotification (Compact 2013)

3/26/2014

This function is called by Power Manager when there is system power activity.

Syntax

VOID PMExt_EventNotification{
  DWORD dwExtContext,
  PLATFORM_ACTIVITY_EVENT platformActivityEvent
};

Parameters

  • dwExtContext
    [in] Context value returned after PME initialization by PMExt_Init.
  • platformActivityEvent
    [in] Type of system activity event which has occurred.

Return Value

None.

Remarks

Power Manager uses this callback function to notify a Power Management Extension (PME) of system power activity. It will also be called when the PME uses the event handle returned by PMExt_GetNotificationHandle to retrieve the current system power state on demand.

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
PLATFORM_ACTIVITY_EVENT