Skip to main content

XStoreQueryProductForCurrentGameResult

获取对 XStoreQueryProductForCurrentGameAsync 调用的结果。

语法

参数

async   _Inout_
类型:XAsyncBlock*
传递给 XStoreQueryProductForCurrentGameAsync 的 XAsyncBlock。XAsyncBlock 可用于轮询调用的状态并检索调用结果。有关详细信息,请参阅 XAsyncBlock productQueryHandle   _Out_
类型:XStoreProductQueryHandle*
返回时,包含表示查询的 XStoreProductQueryHandle。可以将返回的 XStoreProductQueryHandle 传递给 XStoreEnumerateProductsQuery 以枚举查询返回的产品。

返回值

类型:HRESULT 如果成功,则返回 S_OK;否则返回错误代码。

备注

此结果函数允许你检索 XStoreQueryProductForCurrentGameAsync 的执行结果,以及执行成功时所调用的商店产品信息。因此,应在调用 XStoreQueryProductForCurrentGameAsync 之后调用此函数,通常是在回调函数的上下文中。 有关使用示例,请参阅 XStoreQueryProductForCurrentGameAsync

要求

头文件: XStore.h(包含在 XGameRuntime.h 中) 库: xgameruntime.lib 支持的平台: Windows、XBOX One 系列主机和 XBOX Series 主机

另请参阅

XStore XStoreQueryAssociatedProductsAsync
XStoreQueryEntitledProductsAsync
XStoreQueryProductsAsync
XStoreQueryProductForCurrentGameAsync
XStoreQueryProductForPackageAsync
最后修改于 2026年8月24日