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

> PumpMessages method of the ScanManager Object in the ABBYY FineReader Engine API — This method pumps queued messages.

<Note>
  This method is implemented in FRE for Windows.
</Note>

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](/fine-reader/engine/api-reference/mechanism-objects/iscancallback) interface are called.

## Syntax

### C++

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

## Return values

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

## See also

[ScanManager](/fine-reader/engine/api-reference/mechanism-objects/scanmanager)

[IScanCallback](/fine-reader/engine/api-reference/mechanism-objects/iscancallback)
