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

# XStoreAcquireLicenseForDurablesResult

> XStoreAcquireLicenseForDurablesResult

# XStoreAcquireLicenseForDurablesResult

[XStoreAcquireLicenseForDurablesAsync](/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync) の呼び出し結果を取得します。

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

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

[XStoreAcquireLicenseForDurablesAsync](/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync) に渡された `XAsyncBlock` オブジェクト。

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

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

<a id="retvalSection" />

### 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 回のライセンス試行です。 |

<a id="remarksSection" />

## Remarks

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

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

<a id="requirementsSection" />

## Requirements

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

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

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

<a id="seealsoSection" />

## Conceptual documentation

* [プレイヤーへのアドオン コンテンツへのアクセス許可の付与](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\
[XStoreAcquireLicenseForDurablesAsync](/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync)\
[パッケージなしの耐久型を使用する方法](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-dwobs)\
[プレイヤーへのアドオン コンテンツへのアクセス許可の付与](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)


## Related topics

- [XStoreAcquireLicenseForDurablesAsync](/ja-jp/reference/system/xstore/functions/xstoreacquirelicensefordurablesasync.md)
- [XStoreIsLicenseValid](/ja-jp/reference/system/xstore/functions/xstoreislicensevalid.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreCanAcquireLicenseResult](/ja-jp/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
