> ## 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.

# PumpMessages Method of the ScanManager Object

This method pumps queued messages. It may be necessary for the applications that do not implement a standard Windows message loop, in which case you need to call this method when you want to receive queued messages and notifications from scanning methods. When scanning notifications are received, the corresponding methods of the [**IScanCallback**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iscancallback.md) interface are called.

## Syntax

```vb Visual Basic .NET theme={null}
Sub PumpMessages()
```

```cpp C++ theme={null}
HRESULT PumpMessages();
```

## Return values

This method may return the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**ScanManager**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/scanmanager.md)

[**IScanCallback**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/iscancallback.md)
