Compartir a través de


estructura WDF_DEVICE_POWER_NOTIFICATION_DATA (wdfdevice.h)

[Solo se aplica a KMDF]

Nota:

Esta estructura es solo para uso interno de Microsoft.

La estructura WDF_DEVICE_POWER_NOTIFICATION_DATA describe un cambio de estado dentro de la máquina de estado de energía de un dispositivo.

Sintaxis

typedef struct _WDF_DEVICE_POWER_NOTIFICATION_DATA {
  WDF_STATE_NOTIFICATION_TYPE Type;
  union {
    struct {
      WDF_DEVICE_POWER_STATE CurrentState;
      WDF_DEVICE_POWER_STATE NewState;
    } EnterState;
    struct {
      WDF_DEVICE_POWER_STATE CurrentState;
    } PostProcessState;
    struct {
      WDF_DEVICE_POWER_STATE CurrentState;
      WDF_DEVICE_POWER_STATE NewState;
    } LeaveState;
  } Data;
} WDF_DEVICE_POWER_NOTIFICATION_DATA;

Miembros

Type

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

Data

Data.EnterState

Data.EnterState.CurrentState

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

Data.EnterState.NewState

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

Data.PostProcessState

Data.PostProcessState.CurrentState

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

Data.LeaveState

Data.LeaveState.CurrentState

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

Data.LeaveState.NewState

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

Observaciones

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

Requisitos

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

Consulte también

WdfDeviceInitRegisterPowerStateChangeCallback