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

# XStoreCanAcquireLicenseForStoreIdResult

> XStoreCanAcquireLicenseForStoreIdResult

# XStoreCanAcquireLicenseForStoreIdResult

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

## Syntax

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

### Parameters

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

[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync) に渡す `XAsyncBlock`。
[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を使用して呼び出しの状態をポーリングし、呼び出し結果を取得します。
詳細については、[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) を参照してください。

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

戻り時、結果のステータスを確認して、ユーザーが製品にライセンスを付与できるかどうかを確認します。
この API はゲームおよび (パッケージの有無を問わず) 耐久型に対して呼び出します。
挿入されたディスクを使用して製品にライセンスを付与できる場合も結果を返します。
結果には、ユーザーがライセンスを付与できる SKU が含まれます。
ユーザーがディスクを使用してライセンスを付与できるコンテンツの場合、SKU は 'DISC' です。

### Return value

型: HRESULT

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

`XStoreCanAcquireLicenseForStoreIdResult` 関数は次のエラー コードを返します。

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

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

## 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)\
[XStoreCanAcquireLicenseForStoreIdAsync](/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync)\
[パッケージなしの耐久型を使用する方法](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

- [XStoreCanAcquireLicenseResult](/ja-jp/reference/system/xstore/structs/xstorecanacquirelicenseresult.md)
- [XStoreCanAcquireLicenseForStoreIdAsync](/ja-jp/reference/system/xstore/functions/xstorecanacquirelicenseforstoreidasync.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)
- [XStoreCanAcquireLicenseForPackageResult](/ja-jp/reference/system/xstore/functions/xstorecanacquirelicenseforpackageresult.md)
