Compartir a través de


IPortableDevice::Cancel

banner art

Previous Next

IPortableDevice::Cancel

The Cancel method cancels a pending operation on this interface.

Syntax

  HRESULT Cancel();

Parameters

This method takes no parameters.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The operation was canceled successfully

Remarks

If your application invokes the WPD API from multiple threads, each thread should create a new instance of the IPortableDevice interface. Doing this ensures that any cancel operation affects only the I/O for the affected thread.

Requirements

Header: Defined in PortableDeviceApi.h

Library: PortableDeviceGUIDs.lib

See Also

Previous Next