XStoreReportConsumableFulfillmentResult

获取调用 XStoreReportConsumableFulfillmentAsync 的结果。 有关详细信息,请参阅基于易耗品的生态系统,了解有关实现和使用易耗品的更多信息。

语法

HRESULT XStoreReportConsumableFulfillmentResult(  
         XAsyncBlock* async,  
         XStoreConsumableResult* consumableResult  
)  

参数

async _Inout_
类型:XAsyncBlock*

传递给 XStoreReportConsumableFulfillmentAsync 的 XAsyncBlock。 XAsyncBlock 可用于轮询调用的状态和检索调用结果。 有关详细信息,请参阅 XAsyncBlock

consumableResult _Out_
类型:XStoreConsumableResult*

成功时包含一个指示易耗品的当前数量的结构。

返回值

类型:HRESULT

HRESULT 成功或错误代码。

备注

此结果函数让您可以检索 XStoreReportConsumableFulfillmentAsync 的执行结果。 因此,应在调用 XStoreReportConsumableFulfillmentAsync 之后调用此函数,并且通常是在回调函数的上下文中。

有关使用示例,请参阅 XStoreReportConsumableFulfillmentAsync

要求

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

库:xgameruntime.lib

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

另请参阅

XStore
XStoreReportConsumableFulfillmentAsync