Compartir a través de


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 WDF_DEVICE_PNP_NOTIFICATION_DATA describe un cambio de estado dentro de la máquina de estado 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_TYPEque 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_STATEidentifica el estado actual de la máquina de estado.

Data.EnterState.NewState

Si type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATEidentifica 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_STATEidentifica 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_STATEidentifica el estado actual de la máquina de estado.

Data.LeaveState.NewState

Si type es StateNotificationEnterState, este enumerador con tipo WDF_DEVICE_PNP_STATEidentifica el siguiente estado de la máquina de estado.

Observaciones

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

Requisitos

Requisito Valor
versión mínima de KMDF 1.0
encabezado wdfdevice.h (incluya Wdf.h)

Consulte también

WdfDeviceInitRegisterPnpStateChangeCallback