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

# Engine オブジェクトの GetAvailableLicenses メソッド

> ABBYY FineReader Engine API の Engine オブジェクトの GetAvailableLicenses メソッド — このメソッドでは、指定した Customer Project ID で使用可能なライセンスのコレクションにアクセスできます。

このメソッドでは、指定した [Customer Project ID](/ja/fine-reader/engine/api-reference/functions/initializeengine-function#customerprojectid) で利用可能なライセンスのコレクションにアクセスできます。

返されるライセンスの範囲は、インストールの種類によって異なります。

1. Developer インストールの場合、このメソッドは Developer ライセンスと、デバッグが許可されている Runtime ライセンスのみを返します。既定では Runtime ライセンスでのデバッグは許可されていませんが、要請に応じて有効化できます。
2. Runtime インストールの場合、このメソッドは CustomerProjectID に一致する、アクティブ化済みのすべてのライセンスを返します。

どちらのインストール タイプでも、このファイルはインストール フォルダー配下の Bin フォルダーまたは Bin64 フォルダー (Win64 の場合) にあります。

1. Linux および macOS: libProtection.Developer.so
2. Windows: [Protection.Developer.dll](/ja/fine-reader/engine/distribution/distribution-windows/distribution-kit#protection.developer.dll)

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT GetAvailableLicenses(
  BSTR        CustomerProjectID,
  BSTR        Reserved,
  ILicenses** Result
);
```

### C\#

```csharp theme={null}
ILicenses GetAvailableLicenses(
  string CustomerProjectID,
  string Reserved
);
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Function GetAvailableLicenses( _
  CustomerProjectID As String, _
  Reserved As String _
) As ILicenses
```

<div id="parameters">
  ## パラメーター
</div>

CustomerProjectID

\[in] Customer Project ID 番号を指定します。

Reserved

\[in] 将来使用するために予約されています。空文字列 "" または Null pointer を渡す必要があります。

Result

\[out, retval] 出力 [Licenses](/ja/fine-reader/engine/api-reference/license-related-objects/licenses) object のインターフェイスポインターを受け取る ILicenses\* ポインター変数へのポインターです。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[Engine](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface)

[ライセンス](/ja/fine-reader/engine/api-reference/license-related-objects/license)
