次の方法で共有


XStoreQueryProductForCurrentGameResult

XStoreQueryProductForCurrentGameAsync の呼び出しの結果を取得します。

構文

HRESULT XStoreQueryProductForCurrentGameResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  

パラメーター

async _Inout_
型: XAsyncBlock*

XStoreQueryProductForCurrentGameAsync に渡された XAsyncBlock。 XAsyncBlock を使用して、呼び出しのステータスをポーリングし、呼び出しの結果を取得できます。 詳細については、「XAsyncBlock」を参照してください。

productQueryHandle _Out_
型: XStoreProductQueryHandle*

戻ったとき、クエリを表す XStoreProductQueryHandle が格納されています。 返された XStoreProductQueryHandle を XStoreEnumerateProductsQuery に渡して、クエリで返された製品を列挙できます。

戻り値

型: HRESULT

成功した場合は S_OK を返し、それ以外の場合はエラー コードを返します。

解説

この結果関数を使用すると、実行が成功した場合に呼び出された Microsoft Store の製品情報と XStoreQueryProductForCurrentGameAsync の実行結果を取得できます。 そのため、この関数は XStoreQueryProductForCurrentGameAsync が呼び出された後、通常はコールバック関数のコンテキストで呼び出される必要があります。

使用例については、「XStoreQueryProductForCurrentGameAsync」を参照してください。

要件

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

ライブラリ: xgameruntime.lib

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

関連項目

XStoreXStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync