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

# XStoreCanAcquireLicenseForPackageResult

> XStoreCanAcquireLicenseForPackageResult

# XStoreCanAcquireLicenseForPackageResult

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

## Syntax

```cpp theme={null}
HRESULT XStoreCanAcquireLicenseForPackageResult(  
         XAsyncBlock* async,  
         XStoreCanAcquireLicenseResult* storeCanAcquireLicense  
)  
```

### Parameters

*async*   \_Inout\_\
型: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) に渡された XAsyncBlock。
[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を使用して呼び出しの状態を確認し、結果を取得します。詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

*storeCanAcquireLicense*   \_Out\_\
型: [XStoreCanAcquireLicenseResult\*](/reference/system/xstore/structs/xstorecanacquirelicenseresult)

ライセンスを取得できるかどうかと、ユーザーがライセンスを取得できる SKU を示す構造体。

### Return value

型: HRESULT

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

**XStoreCanAcquireLicenseForPackageResult** 関数は、次のエラー コードを返す場合があります。

| エラー コード                                                 | 意味                                                                        |
| ------------------------------------------------------- | ------------------------------------------------------------------------- |
| 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

この結果関数は、[XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) の実行結果と、実行が成功した場合のプレビュー ライセンスを取得します。
この関数は [XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) の後に、通常はコールバック関数のコンテキストで呼び出します。
詳細については、[XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync) を参照してください。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

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

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

## 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)\
[XStoreCanAcquireLicenseForPackageAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync)\
[ダウンロード可能なコンテンツ (DLC) の管理およびライセンス](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-manage-and-license-optional-packages)


## Related topics

- [XStoreCanAcquireLicenseResult](/ja-jp/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForPackageAsync](/ja-jp/reference/system/xstore/functions/xstorecanacquirelicenseforpackageasync.md)
- [XStoreAcquireLicenseForPackageAsync](/ja-jp/reference/system/xstore/functions/xstoreacquirelicenseforpackageasync.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)
