> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CancelScan Method of the ScanSource Object

> CancelScan method of the ScanSource Object in the ABBYY FineReader Engine API — This method cancels the asynchronous scanning operation.

> [!NOTE]
>
> This method is implemented in FRE for Windows.

This method cancels the asynchronous scanning operation.

## Syntax

### C++

```cpp theme={null}
HRESULT CancelScan();
```

## Return values

This method may return the [standard return values of ABBYY FineReader Engine functions](https://docs.abbyy.com/fine-reader/engine/api-reference/return-codes.md).

## See also

[ScanSource](https://docs.abbyy.com/fine-reader/engine/api-reference/mechanism-objects/scansource.md)
