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

# XStoreQueryProductsResult

> XStoreQueryProductsResult

# XStoreQueryProductsResult

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

## Syntax

```cpp theme={null}
HRESULT XStoreQueryProductsResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### Parameters

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

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

*productQueryHandle*   \_Out\_\
型: XStoreProductQueryHandle\*

関数から戻ったとき、クエリを表す XStoreProductQueryHandle が格納されます。返された XStoreProductQueryHandle は [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) に渡すことで、クエリが返した製品を列挙できます。

### Return value

型: HRESULT

成功した場合は S\_OK、それ以外の場合はエラー コードが返されます。

## Remarks

この結果関数を使用して [XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync) の実行結果を取得します。実行が成功した場合、リスト情報が返されます。
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync) の後、通常はコールバック関数のコンテキストでこの関数を呼び出します。

使用例については、[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync) を参照してください。

## 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)\
[XStoreQueryAssociatedProductsAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)\
[基本的なストア操作](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-basic-store-operations)\
[プレイヤーにアドオン コンテンツへのアクセス許可を付与する](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-granting-access-to-content)


## Related topics

- [XStoreEnumerateProductsQuery](/ja-jp/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreCloseProductsQueryHandle](/ja-jp/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XStoreQueryProductsAsync](/ja-jp/reference/system/xstore/functions/xstorequeryproductsasync.md)
- [XStoreProductsQueryHasMorePages](/ja-jp/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageAsync](/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageasync.md)
