XStoreCloseProductsQueryHandle

关闭指定的应用商店产品查询句柄。

语法

void XStoreCloseProductsQueryHandle(  
         XStoreProductQueryHandle productQueryHandle  
)  

参数

productQueryHandle _In_
类型:XStoreProductQueryHandle

要关闭的句柄。

返回值

类型:void

备注

此函数可以安全地在时间敏感线程上调用。

此函数关闭由 XStoreQueryProductForCurrentGameResultXStoreQueryProductForPackageResult.mdXStoreQueryEntitledProductsResultXStoreQueryProductsResult 返回的产品查询句柄。 未能关闭打开的产品查询句柄将导致内存泄露。 有关使用示例,请参阅 XStoreQueryAssociatedProductsAsync

要求

头文件:XStore.h(包含在 XGameRuntime.h 中)

库:xgameruntime.lib

支持平台:Windows、Xbox One 系列主机和 Xbox Series 主机

另请参阅

XStore
XStoreQueryProductForCurrentGameResult
XStoreQueryProductForPackageResult.md
XStoreQueryEntitledProductsResult
XStoreQueryProductsResult