Miniport Adapter Device PnP Event Notifications
NDIS calls a miniport driver's MiniportDevicePnPEventNotify function to notify the driver of Plug and Play (PnP) events.
NDIS provides an event code that describes the PnP event. The code can indicate that the adapter has been unexpectedly removed from the system or that the power profile of the host system has changed.
If the event code indicates that the power profile has changed, NDIS also indicates the type of change. Either the system is running on battery power or the system is running on AC power.
The miniport driver should adjust the adapter settings accordingly.