次の方法で共有


PlatformSendInitialNotifications (Compact 2013)

3/26/2014

This function is invoked when an application requests a power notification.

Syntax

VOID PlatformSendInitialNotifications(
  PPOWER_NOTIFICATION ppn,
  DWORD dwFlags
);

Parameters

  • ppn
    Platform power notification.
  • dwFlags
    Flag value.

Return Value

None.

Remarks

The model device driver (MDD) calls this function to provide the platform device driver (PDD) with an opportunity to generate notifications that are valid at the time that RequestPowerNotifications is called. Specifically, an application that requests battery information or power status notification may actually need an initial notification. The initial notification allows the application to initialize internal state variables without calling GetSystemPowerStatusEx2 or other power-related functions.

Requirements

Header

pmimpl.h

See Also

Reference

Power Management Functions