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

# ScanManager オブジェクトの FindScanSources メソッド

このメソッドを使用すると、スキャナが提供するユーザーインターフェースの型および API の型で絞り込んだ、利用可能なスキャンソースの一覧を取得できます。

## 構文

```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
);
```

## パラメーター

**OptionsInterfaceType**

\[in] この変数には、スキャンオプションの設定に使用するインターフェイスの型を [**ScanOptionsInterfaceTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/scanoptionsinterfacetypeenum.md) で指定します。

**ApiType**

\[in] この変数には、スキャンソースがサポートしている必要がある API の型を指定します。値には [**ScanSourceApiTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/scansourceapitypeenum.md) 定数のいずれかを指定します。

**Result**

\[out, retval] [**ScanSources**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/scansources.md) オブジェクトのインターフェースポインターを受け取る **IScanSources**\* ポインター変数へのポインター。

## 戻り値

このメソッドは、[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返すことがあります。

## 関連項目

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