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

# XStoreQueryAddOnLicensesResult

> XStoreQueryAddOnLicensesResult

# XStoreQueryAddOnLicensesResult

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

## 構文

```cpp theme={null}
HRESULT XStoreQueryAddOnLicensesResult(  
         XAsyncBlock* async,  
         uint32_t count,  
         XStoreAddonLicense* addOnLicenses  
)  
```

### パラメーター

*async*   \_Inout\_\
Type: [XAsyncBlock\*](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md)

[XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md) に渡された XAsyncBlock。
[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) を参照してください。

*count*   \_In\_\
Type: uint32\_t

**addOnLicenses** に渡される配列内の要素数。

*addOnLicenses*   \_Out\_writes\_(count)\
Type: [XStoreAddonLicense\*](https://docs.xbox.com/ja-jp/reference/system/xstore/structs/xstoreaddonlicense.md)

成功時に、この配列には永続型アドオン ライセンスが含まれます。

### 戻り値

Type: HRESULT

HRESULT の成功またはエラー コード。

## 解説

この結果関数を使用すると、[XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md) の実行結果と、実行が成功した場合に呼び出されたアドオン ライセンスを取得できます。したがって、この関数は [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresult.md) の呼び出し後、通常はコールバック関数のコンテキストで呼び出す必要があります。

使用例については、[XStoreQueryAddonLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md) を参照してください。

## 要件

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

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

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

## 関連項目

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XStoreQueryAddonLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md)\
[XStoreQueryAddonLicensesResultCount](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md)


## Related topics

- [XStoreAddonLicense](https://docs.xbox.com/ja-jp/reference/system/xstore/structs/xstoreaddonlicense.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)
- [XStoreQueryAddOnLicensesResultCount](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesresultcount.md)
- [XStoreQueryAddOnLicensesAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryaddonlicensesasync.md)
