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

# FindScanSources Method of the ScanManager Object

This method enables you to receive a list of available scanning sources filtered by user interface type and API type that the scanner provides.

## Syntax

```vb Visual Basic .NET theme={null}
Function FindScanSources( _
  OptionsInterfaceType As ScanOptionsInterfaceTypeEnum, _
  ApiType As ScanSourceApiTypeEnum _
) As ScanSources
```

```cpp C++ theme={null}
HRESULT FindScanSources(
  ScanOptionsInterfaceTypeEnum  OptionsInterfaceType,
  ScanSourceApiTypeEnum         ApiType,
  IScanSources**                Result
);
```

## Parameters

**OptionsInterfaceType**

\[in] This variable specifies the interface type which is to be used for setting the scanning options as [**ScanOptionsInterfaceTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/scanoptionsinterfacetypeenum.md).

**ApiType**

\[in] This variable specifies the API type that must be supported by the scanning source. It is defined as one of the [**ScanSourceApiTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/scansourceapitypeenum.md) constants.

**Result**

\[out, retval] A pointer to the **IScanSources\*** pointer variable that receives the interface pointer of the [**ScanSources**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/scansources.md) object.

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