EvtDeviceReportedMissing
EvtDeviceUsageNotificationEx
EvtDeviceWdmIrpDispatch
EvtDeviceWdmPostPoFxRegisterDevice
EvtDeviceWdmPrePoFxUnregisterDevice
WDF_DEVICE_INTERFACE_PROPERTY_DATA
WDF_DEVICE_INTERFACE_PROPERTY_DATA_INIT
WDF_DEVICE_PROPERTY_DATA
WDF_DEVICE_PROPERTY_DATA_INIT
WDF_DISPATCH_IRP_TO_IO_QUEUE_FLAGS
WDF_EVENT_TYPE
WDF_IO_TYPE_CONFIG
WDF_IO_TYPE_CONFIG_INIT
WDF_POWER_FRAMEWORK_SETTINGS
WDF_POWER_FRAMEWORK_SETTINGS_INIT
WDF_POWER_POLICY_IDLE_TIMEOUT_TYPE
WDF_RELEASE_HARDWARE_ORDER_ON_FAILURE
WDF_REMOVE_LOCK_OPTIONS
WDF_REMOVE_LOCK_OPTIONS_FLAGS
WDF_REMOVE_LOCK_OPTIONS_INIT
WdfDeviceAllocAndQueryInterfaceProperty method
WdfDeviceAllocAndQueryPropertyEx method
WdfDeviceAssignInterfaceProperty method
WdfDeviceAssignProperty method
WdfDeviceConfigureWdmIrpDispatchCallback method
WdfDeviceGetDeviceStackIoType method
WdfDeviceGetHardwareRegisterMappedAddress
WdfDeviceInitSetIoTypeEx method
WdfDeviceInitSetReleaseHardwareOrderOnFailure method
WdfDeviceInitSetRemoveLockOptions method
WdfDeviceMapIoSpace
WdfDeviceOpenDevicemapKey method
WdfDevicePostEvent
WdfDeviceQueryInterfaceProperty method
WdfDeviceQueryPropertyEx method
WdfDeviceReadFromHardware
WdfDeviceResumeIdleWithTag method
WdfDeviceStopIdleWithTag method
WdfDeviceUnmapIoSpace
WdfDeviceWdmAssignPowerFrameworkSettings method
WdfDeviceWdmDispatchIrp method
WdfDeviceWdmDispatchIrpToIoQueue method
WdfDeviceWriteToHardware
WdfFdoInitAllocAndQueryPropertyEx method
WdfFdoInitQueryPropertyEx method
展開 最小化

WDF_STATE_NOTIFICATION_TYPE 列挙型

The WDF_STATE_NOTIFICATION_TYPE enumeration identifies the type of Plug and Play, power, or power policy notification that a framework-based driver will receive.

構文

typedef enum _WDF_STATE_NOTIFICATION_TYPE {
  StateNotificationInvalid            = 0x0000,
  StateNotificationEnterState         = 0x0001,
  StateNotificationPostProcessState   = 0x0002,
  StateNotificationLeaveState         = 0x0004,
  StateNotificationAllStates          = StateNotificationEnterState | StateNotificationPostProcessState | StateNotificationLeaveState 
} WDF_STATE_NOTIFICATION_TYPE;

定数

StateNotificationInvalid

For internal use only.

StateNotificationEnterState

The driver is notified immediately before a device's Plug and Play, power, or power policy state machine enters a specified state.

StateNotificationPostProcessState

The driver is notified immediately after a device's Plug and Play, power, or power policy state machine enters a specified state.

StateNotificationLeaveState

The driver is notified immediately before a device's Plug and Play, power, or power policy state machine leaves a specified state.

StateNotificationAllStates

The driver receives enter-state, postprocess-state, and leave-state notifications.

解説

When the framework's state machine for a driver's device changes from state a to state b, the framework notifies the driver (if the driver registered an appropriate event callback function), in the following sequence:

  1. Calls state a's leave-state notification callback function.

  2. Calls state b's enter-state notification callback function.

  3. Changes the device's state from a to b.

  4. Calls state b's postprocess-state notification callback function.

To register for notification of a change in state, the driver can call the following methods:

要件

バージョン

Available in version 1.0 and later versions of KMDF.

ヘッダー

Wdfdevice.h (includeWdf.h)

参照

WDF_DEVICE_PNP_NOTIFICATION_DATA
WDF_DEVICE_POWER_NOTIFICATION_DATA
WDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft