情報
要求されたトピックは次のとおりです。しかし、このトピックはこのライブラリには含まれていません。

EvtIoTargetRemoveCanceled

A driver's EvtIoTargetRemoveCanceled event callback function performs operations when the removal of a specified remote I/O target is canceled.

構文

EVT_WDF_IO_TARGET_REMOVE_CANCELED EvtIoTargetRemoveCanceled;

VOID EvtIoTargetRemoveCanceled(
  __in  WDFIOTARGET IoTarget
)
{ ... }

パラメーター

IoTarget [in]

A handle to an I/O target object.

戻り値

None

解説

To register an EvtIoTargetRemoveCanceled callback function, place the callback function's address in the I/O target's WDF_IO_TARGET_OPEN_PARAMS structure.

If the driver's EvtIoTargetQueryRemove callback function called WdfIoTargetCloseForQueryRemove, the driver's EvtIoTargetRemoveCanceled callback function must call WdfIoTargetOpen to re-enable sending I/O requests to the I/O target. When the driver calls WdfIoTargetOpen, it can specify WdfIoTargetOpenReopen for the Type member of the WDF_IO_TARGET_OPEN_PARAMS structure.

The optional EvtIoTargetRemoveCanceled callback function should perform any additional operations that might be necessary before the driver resumes sending I/O requests to the I/O target.

For more information about the EvtIoTargetRemoveCanceled callback function, see Controlling a General I/O Target's State.

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

typedef VOID
  (EVT_WDF_IO_TARGET_REMOVE_CANCELED)(
    IN WDFIOTARGET  IoTarget
    );

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

EVT_WDF_IO_TARGET_REMOVE_CANCELED  MyIoTargetRemoveCanceled;

Then, implement your callback function as follows:

VOID
 MyIoTargetRemoveCanceled (
    IN WDFIOTARGET  IoTarget
    )
  {...}

要件

バージョン

Supported by version 1.0 and later versions of KMDF.

ヘッダー

WdfIoTarget.h (includeWdf.h)

IRQL

PASSIVE_LEVEL

参照

EvtIoTargetRemoveComplete
EvtIoTargetQueryRemove
WDF_IO_TARGET_OPEN_PARAMS
WdfIoTargetCloseForQueryRemove
WdfIoTargetOpen

 

 

コミュニティの追加

表示:
© 2014 Microsoft