IRemoteTargetCallbackRemoval::OnRemoteTargetRemoveComplete 方法

A UMDF-based driver's OnRemoteTargetRemoveComplete event callback function performs operations that are necessary after the operating system completes the removal of a remote I/O target's device.

语法

void OnRemoteTargetRemoveComplete(
  [in]  IWDFRemoteTarget *pWdfRemoteTarget
);

参数

pWdfRemoteTarget [in]

A pointer to the IWDFRemoteTarget interface of a remote target object that represents a remote I/O target. The driver obtains this pointer when it calls IWDFDevice2::CreateRemoteTarget.

返回值

None.

评论

If your driver provides an OnRemoteTargetRemoveComplete event callback function, the callback function should do the following:

  1. Do any driver-specific actions that your driver requires to close the remote I/O target.

  2. Call IWDFRemoteTarget::Close.

If the driver does not provide this callback function, the framework calls IWDFRemoteTarget::Close for the driver.

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

要求

版本

Available in version 1.9 and later versions of UMDF.

标头

Wudfddi.h (包括Wudfddi.h)

另请参见

IRemoteTargetCallbackRemoval::OnRemoteTargetQueryRemove
IRemoteTargetCallbackRemoval::OnRemoteTargetRemoveCanceled

 

 

社区附加资源

添加
显示:
© 2015 Microsoft