IRemoteTargetCallbackRemoval::OnRemoteTargetRemoveCanceled method

[Applies to UMDF 1.x only]

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

Syntax


void OnRemoteTargetRemoveCanceled(
  [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 OnRemoteTargetRemoveCanceled event callback function, the callback function must do the following:

  1. Call IWDFRemoteTarget::Reopen.

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

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

For more information about the OnRemoteTargetRemoveCanceled 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::OnRemoteTargetRemoveComplete

 

 

Send comments about this topic to Microsoft

Afficher:
© 2014 Microsoft