EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION funzione di callback (wdfdevice.h)
[Si applica solo a KMDF]
Nota
Questa funzione di callback è solo per uso interno di Microsoft.
La funzione di callback di un driver EvtDevicePnpStateChange informa il driver che la macchina a stati Plug and Play (PnP) di un dispositivo passa da uno stato a un altro.
Sintassi
EVT_WDF_DEVICE_PNP_STATE_CHANGE_NOTIFICATION EvtWdfDevicePnpStateChangeNotification;
void EvtWdfDevicePnpStateChangeNotification(
[in] WDFDEVICE Device,
[in] PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
)
{...}
Parametri
[in] Device
Handle per un oggetto dispositivo framework.
[in] NotificationData
Puntatore a una struttura di WDF_DEVICE_PNP_NOTIFICATION_DATA fornita dal framework che identifica gli stati precedenti e nuovi della macchina a stati.
Valore restituito
Nessuno
Osservazioni
Per registrare un EvtDevicePnpStateChange funzione di callback, un driver deve chiamare WdfDeviceInitRegisterPnpStateChangeCallback.
Per altre informazioni sulla macchina a stati PnP del framework, vedere State Machines in Framework.
Fabbisogno
Requisito | Valore |
---|---|
piattaforma di destinazione | Universale |
versione minima di KMDF | 1.0 |
intestazione | wdfdevice.h (include Wdf.h) |
IRQL | PASSIVE_LEVEL |