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.

ICreateDeviceAccessAsync::Cancel method

The Cancel method attempts to cancel an asynchronous operation that is in progress.

Syntax


HRESULT Cancel();

Parameters

This method has no parameters.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the operation is successfully canceled, a call to the GetResult method occurs.

Your application can call Cancel at any time. If the operation is already closed or completed, it has no effect.

Requirements

Header

Deviceaccess.h

IDL

Deviceaccess.idl

Library

Deviceaccess.lib

See also

ICreateDeviceAccessAsync

 

 

Community Additions

Show:
© 2017 Microsoft