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

# XStoreQueryProductForCurrentGameResult

> XStoreQueryProductForCurrentGameResult

# XStoreQueryProductForCurrentGameResult

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

## 構文

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

### パラメーター

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

[XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.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\_\
Type: XStoreProductQueryHandle\*

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

### 戻り値

Type: HRESULT

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

## 解説

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

使用例については、[XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.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)
[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)


## Related topics

- [XStoreQueryProductForCurrentGameAsync](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync.md)
- [XStoreCloseProductsQueryHandle](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstorecloseproductsqueryhandle.md)
- [XStoreEnumerateProductsQuery](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreenumerateproductsquery.md)
- [XStoreProductsQueryHasMorePages](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsqueryhasmorepages.md)
- [XStoreProductsQueryNextPageResult](https://docs.xbox.com/ja-jp/reference/system/xstore/functions/xstoreproductsquerynextpageresult.md)
