// wdfdevice.h
EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION EvtWdfDevicePnpStateChangeNotification;
VOID EvtWdfDevicePnpStateChangeNotification(
[in] WDFDEVICE Device,
[in] PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
[!NOTE] This callback function is for Microsoft-internal use only.
A driver's EvtDevicePnpStateChange event callback function informs the driver that a device's Plug and Play (PnP) state machine is moving from one state to another.
Device [in]A handle to a framework device object.
NotificationData [in]A pointer to a framework-supplied WDF_DEVICE_PNP_NOTIFICATION_DATA structure that identifies the state machine's old and new states.
To register an EvtDevicePnpStateChange callback function, a driver must call WdfDeviceInitRegisterPnpStateChangeCallback.
For more information about the framework's PnP state machine, see State Machines in the Framework.
EvtDevicePowerPolicyStateChange