Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IPortableDeviceService::Cancel method

The Cancel method cancels a pending operation on this interface.

Syntax


HRESULT STDMETHODCALLTYPE Cancel();

Parameters

This method has no parameters.

Return value

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

Remarks

This method cancels all pending operations on the current device 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.

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

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

None supported

Header

PortableDeviceAPI.h

IDL

PortableDeviceAPI.idl

See also

IPortableDeviceService Interface

 

 

Community Additions

Show:
© 2017 Microsoft