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

ADD
Show: