> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreAcquireLicenseForDurablesResult

> XStoreAcquireLicenseForDurablesResult

# XStoreAcquireLicenseForDurablesResult

[XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md) の呼び出し結果を取得します。

## Syntax

```cpp theme={null}
HRESULT XStoreAcquireLicenseForDurablesResult(
         XAsyncBlock* async,
         XStoreLicenseHandle* storeLicenseHandle
)
```

### Parameters

*async*   \_Inout\_\
型: XAsyncBlock\*

[XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md) に渡された `XAsyncBlock` オブジェクト。

*storeLicenseHandle*   \_Out\_\
型: XStoreLicenseHandle\*

成功時に、ストア ライセンスへのハンドルが含まれます。
取得したライセンス ハンドルを [XStoreIsLicenseValid](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreislicensevalid.md) に渡して、ライセンスが有効かどうかを確認します。

### Return value

型: HRESULT

成功した場合は **S\_OK** を、それ以外の場合はエラー コードを返します。

`XStoreAcquireLicenseForDurablesResult` は次のエラー コードを返す場合があります。

| エラー コード | 説明 |
| - | - |
| 0x87E10BC6 `LM_E_CONTENT_NOT_IN_CATALOG` | 製品がカタログに見つかりませんでした。 |
| 0x803F8001 `LM_E_CONTENT_NOT_OWNED` | 製品は所有されていません。 |
| 0x803F8008 `LM_E_PREDOWNLOAD_LICENSE_NOT_YET_AVAILABLE` | 製品は所有されていますが、まだリリースされていないためライセンスを付与できません。 |
| 0x803F9006 `LM_E_ENTITLED_USER_SIGNED_OUT` | 製品の所有者がサインインしていません。 |
| 0x89245305 `E_GAMESTORE_LICENSE_ACTION_THROTTLED` | ゲームが製品のライセンスを過剰にクエリしたため、現在スロットルされています。制限は同じ製品に対して 10 分以内に 30 回のライセンス試行です。 |

## Remarks

この関数はタイム センシティブなスレッドで呼び出します。

[XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md) 構造体には呼び出しの結果が格納されます。
[XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md) オブジェクトを使用して関数呼び出しの状態をポーリングし、結果を取得します。
指定した永続型のライセンスを取得するには、[XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md) を呼び出します。

## Requirements

**ヘッダー:** XStore.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム**: Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [プレイヤーへのアドオン コンテンツへのアクセス許可の付与](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-granting-access.md)

## See also

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)\
[XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md)\
[パッケージなしの永続型を使用する方法](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-dwob.md)\
[プレイヤーへのアドオン コンテンツへのアクセス許可の付与](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-granting-access.md)


## Related topics

- [XStoreAcquireLicenseForDurablesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md)
- [XStoreIsLicenseValid](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreislicensevalid.md)
- [XStore (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCanAcquireLicenseResult](https://docs.xbox.com/ja-jp/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
