IPortableDeviceServiceCapabilities::Cancel method (portabledeviceapi.h)

The Cancel method cancels a pending operation.


HRESULT Cancel();

Return value

If the method succeeds, it returns S_OK. Any other HRESULT value indicates that the call failed.


This method cancels all pending operations on the current service handle, which corresponds to a session associated with an IPortableDeviceService interface. The Windows Portable Devices (WPD) API does not support targeted cancellation of specific operations.


Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header portabledeviceapi.h

See also

IPortableDeviceServiceCapabilities Interface