estructura WDF_DEVICE_PNP_NOTIFICATION_DATA (wdfdevice.h)

[Solo se aplica a KMDF]

Nota

Esta estructura es solo para uso interno de Microsoft.

La estructura de WDF_DEVICE_PNP_NOTIFICATION_DATA describe un cambio de estado dentro de la máquina de estado de Plug and Play de un dispositivo.

Sintaxis

typedef struct _WDF_DEVICE_PNP_NOTIFICATION_DATA {
  WDF_STATE_NOTIFICATION_TYPE Type;
  union {
    struct {
      WDF_DEVICE_PNP_STATE CurrentState;
      WDF_DEVICE_PNP_STATE NewState;
    } EnterState;
    struct {
      WDF_DEVICE_PNP_STATE CurrentState;
    } PostProcessState;
    struct {
      WDF_DEVICE_PNP_STATE CurrentState;
      WDF_DEVICE_PNP_STATE NewState;
    } LeaveState;
  } Data;
} WDF_DEVICE_PNP_NOTIFICATION_DATA;

Miembros

Type

Enumerador con tipo WDF_STATE_NOTIFICATION_TYPE que identifica el tipo de cambio de estado que se notifica.

Data

Data.EnterState

EnterState.

Data.EnterState.CurrentState

Si Type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATE identifica el estado actual de la máquina de estado.

Data.EnterState.NewState

Si Type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATE identifica el siguiente estado de la máquina de estado.

Data.PostProcessState

PostProcessState.

Data.PostProcessState.CurrentState

Si Type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATE identifica el estado actual de la máquina de estado.

Data.LeaveState

LeaveState.

Data.LeaveState.CurrentState

Si Type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATE identifica el estado actual de la máquina de estado.

Data.LeaveState.NewState

Si Type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATE identifica el siguiente estado de la máquina de estado.

Comentarios

La estructura WDF_DEVICE_PNP_NOTIFICATION_DATA es un argumento de entrada para la función de devolución de llamada EvtDevicePnpStateChange de un controlador.

Requisitos

Requisito Value
Versión mínima de KMDF 1.0
Encabezado wdfdevice.h (incluya Wdf.h)

Consulte también

WdfDeviceInitRegisterPnpStateChangeCallback