The IRemoteTargetCallbackRemoval interface provides callback functions that the framework calls to notify the driver about events that are associated with the removal of a remote I/O target.
The IRemoteTargetCallbackRemoval interface inherits from the IUnknown interface. IRemoteTargetCallbackRemoval also has these types of members:
The IRemoteTargetCallbackRemoval interface has these methods.
A UMDF-based driver's OnRemoteTargetQueryRemove event callback function determines whether a remote I/O target's device can be stopped and removed.
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.
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.
If your driver supports an IRemoteTargetCallbackRemoval interface for a device, the IUnknown::QueryInterface method that the driver passes to IWDFDevice2::CreateRemoteTarget must return the interface.