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

# XStoreEnumerateProductsQuery

> XStoreEnumerateProductsQuery

# XStoreEnumerateProductsQuery

製品クエリの結果を列挙します。

## 構文

```cpp theme={null}
HRESULT XStoreEnumerateProductsQuery(  
         const XStoreProductQueryHandle productQueryHandle,  
         void* context,  
         XStoreProductQueryCallback* callback  
)  
```

### パラメーター

*productQueryHandle*   \_In\_\
Type: XStoreProductQueryHandle

結果を列挙するクエリのハンドル。XStoreProductQueryHandle は、[XStoreQueryProductForCurrentGameResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameresult.md)、[XStoreQueryProductForPackageResult.md](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforpackageresult.md)、[XStoreQueryEntitledProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryentitledproductsresult.md)、[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)、および [XStoreQueryProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md) から返されます。

*context*   \_In\_opt\_\
Type: void\*

コールバックに渡されるゲーム定義のコンテキスト。

*callback*   \_In\_\
Type: [XStoreProductQueryCallback\*](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductquerycallback.md)

各製品に対して呼び出されるゲーム定義のコールバック。

### 戻り値

Type: HRESULT

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

## 解説

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

この関数は、製品情報を要求する関数によって返された製品を列挙するために使用されます。必要に応じて、製品の列挙を呼び出した後、[XStoreProductsQueryHasMorePages](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md) 関数を使用して追加の製品情報を確認します。さらに読み取る製品情報がある場合は、[XStoreProductsQueryNextPageAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md) を使用して読み取ります。使用例については、[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md) を参照してください。

## 要件

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

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

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

## 関連概念ドキュメント

* [タイム センシティブなスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 関連項目

[XStore](https://docs.xbox.com/ja-jp/reference/system/xstore/xstore_members.md)\
[XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)\
[XStoreQueryProductsResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)\
[XStoreProductQueryCallback](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductquerycallback.md)


## Related topics

- [XStoreProductQueryCallback](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductquerycallback.md)
- [XStoreProductsQueryHasMorePages](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
- [XStoreQueryAssociatedProductsForStoreIdAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync.md)
- [XStoreQueryAssociatedProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsasync.md)
