IRemoteTargetCallbackRemoval::OnRemoteTargetRemoveComplete method

[Applies to UMDF 1.x only]

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.

Syntax


void OnRemoteTargetRemoveComplete(
  [in]  IWDFRemoteTarget *pWdfRemoteTarget
);

Parameters

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.

Return value

None.

Remarks

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.

Requirements

End of support

Unavailable in UMDF 2.0 and later.

Minimum UMDF version

1.9

Header

Wudfddi.h (include Wudfddi.h)

See also

IRemoteTargetCallbackRemoval
IRemoteTargetCallbackRemoval::OnRemoteTargetQueryRemove
IRemoteTargetCallbackRemoval::OnRemoteTargetRemoveCanceled

 

 

Send comments about this topic to Microsoft

顯示:
© 2014 Microsoft