IDeviceIoControl::CancelOperation method

The CancelOperation method attempts to cancel a previously issued call by using the DeviceIoControlAsync method.

Syntax


HRESULT CancelOperation(
  [in] ULONG_PTR cancelContext
);

Parameters

cancelContext [in]

The cancel context that a previous call to DeviceIoControlAsync returned.

Return value

This method supports standard return values, in addition to these:

Return codeDescription
S_OK

The operation was still outstanding, and cancellation was attempted.

ERROR_NOT_FOUND

The operation was no longer outstanding.

 

Remarks

Regardless of whether cancellation is successful, the result of the operation is available in the callback that's provided to the asynchronous call.

Requirements

Header

Deviceaccess.h

IDL

Deviceaccess.idl

Library

Deviceaccess.lib

See also

IDeviceIoControl

 

 

Community Additions

ADD
Show: