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
展開 最小化

EvtDeviceDisarmWakeFromSx

A driver's EvtDeviceDisarmWakeFromSx event callback function disarms (that is, disables) a device's ability to trigger a wake signal while the device and system are in low-power states.

構文

EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX EvtDeviceDisarmWakeFromSx;

VOID EvtDeviceDisarmWakeFromSx(
  __in  WDFDEVICE Device
)
{ ... }

パラメーター

Device [in]

A handle to a framework device object.

戻り値

None

解説

To register an EvtDeviceDisarmWakeFromSx callback function, a driver must call WdfDeviceInitSetPowerPolicyEventCallbacks.

If the driver has registered this callback function, the framework calls it after the framework has determined that system power is being restored, and after the bus driver completes the wait/wake IRP. Before calling the driver's EvtDeviceDisarmWakeFromSx callback function, the framework calls the driver's EvtDeviceD0Entry, EvtInterruptEnable, and EvtDeviceWakeFromSxTriggered callback functions.

The EvtDeviceDisarmWakeFromSx callback function must perform any hardware operations that are needed to disable the device's ability to trigger a wake signal after the power has been lowered.

For more information about when the framework calls this callback function, see PnP and Power Management Scenarios.

For more information about this callback function, see Supporting System Wake-Up.

The EvtDeviceDisarmWakeFromSx callback function is called at IRQL = PASSIVE_LEVEL. You should not make this callback function pageable.

The function type is declared in Wdfdevice.h, as follows.

typedef VOID
 (EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX)(
    IN WDFDEVICE Device
    );

To define an EvtDeviceDisarmWakeFromSx callback function that is named MyDeviceDisarmWakeFromSx, you must first provide a function declaration that SDV and other verification tools require, as follows:

EVT_WDF_DEVICE_DISARM_WAKE_FROM_SX  MyDeviceDisarmWakeFromSx;

Then, implement your callback function as follows:

VOID
 MyDeviceDisarmWakeFromSx (
    IN WDFDEVICE  Device
    )
  {...}

要件

バージョン

Supported by version 1.0 and later versions of KMDF.

ヘッダー

Wdfdevice.h (includeWdf.h)

IRQL

PASSIVE_LEVEL (see Remarks section)

参照

EvtDeviceArmWakeFromSx
EvtDeviceDisarmWakeFromS0
EvtDeviceWakeFromSxTriggered

 

 

コミュニティの追加

追加
表示:
© 2015 Microsoft