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

# XStoreQueryProductsResult

> XStoreQueryProductsResult

# XStoreQueryProductsResult

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

## Syntax

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

### Parameters

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

[XStoreQueryProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsasync.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) を参照してください。

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

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

### Return value

型: HRESULT

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

## Remarks

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

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

## Requirements

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

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

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

## Conceptual documentation

* [プレイヤーにアドオン コンテンツへのアクセス許可を付与する](https://docs.xbox.com/ja-jp/publishing/xstore-commerce/xstore-granting-access.md)

## See also

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


## Related topics

- [XStoreEnumerateProductsQuery](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreCloseProductsQueryHandle](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XStoreQueryProductsAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductsasync.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)
