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

# XStoreEnumerateProductsQuery

> XStoreEnumerateProductsQuery

# XStoreEnumerateProductsQuery

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

## 構文

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

### パラメーター

*productQueryHandle*   \_In\_\
Type: XStoreProductQueryHandle

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

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

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

*callback*   \_In\_\
Type: [XStoreProductQueryCallback\*](/reference/system/xstore/functions/xstoreproductquerycallback)

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

### 戻り値

Type: HRESULT

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

## 解説

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

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

## 要件

**ヘッダー:** 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](/reference/system/xstore/xstore_members)\
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryProductsResult](/reference/system/xstore/functions/xstorequeryproductsresult)\
[XStoreProductQueryCallback](/reference/system/xstore/functions/xstoreproductquerycallback)


## Related topics

- [XStoreProductQueryCallback](/ja-jp/reference/system/xstore/functions/xstoreproductquerycallback.md)
- [XStoreProductsQueryHasMorePages](/ja-jp/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageAsync](/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
- [XStoreQueryProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryAssociatedProductsResult](/ja-jp/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
