> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreReportConsumableFulfillmentResult

> XStoreReportConsumableFulfillmentResult

# XStoreReportConsumableFulfillmentResult

获取对 [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 调用的结果。有关实现和使用消耗品产品的详细信息，请参阅[基于消耗品的生态系统](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-consumable-based-ecosystems)。

## 语法

```cpp theme={null}
HRESULT XStoreReportConsumableFulfillmentResult(  
         XAsyncBlock* async,  
         XStoreConsumableResult* consumableResult  
)  
```

### 参数

*async*   \_Inout\_\
类型：[XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

传递给 [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 的 XAsyncBlock。[XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 可用于轮询调用的状态并检索调用结果。有关详细信息，请参阅 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)。

*consumableResult*   \_Out\_\
类型：[XStoreConsumableResult\*](/reference/system/xstore/structs/xstoreconsumableresult)

成功时，包含指示消耗品当前数量的结构。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 备注

此结果函数允许你检索 [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 的执行结果。因此，应在调用 [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync) 之后调用此函数，通常是在回调函数的上下文中。

有关使用示例，请参阅 [XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync)。

## 要求

**头文件：** XStore.h（包含在 XGameRuntime.h 中）

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XStore](/reference/system/xstore/xstore_members)\
[XStoreReportConsumableFulfillmentAsync](/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync)


## Related topics

- [XStoreReportConsumableFulfillmentAsync](/zh-CN/reference/system/xstore/functions/xstorereportconsumablefulfillmentasync.md)
- [XStoreConsumableResult](/zh-CN/reference/system/xstore/structs/xstoreconsumableresult.md)
- [XStore](/zh-CN/reference/system/xstore/xstore_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [基于消耗品的生态系统](/zh-CN/publishing/xstore-commerce/xstore-consumables.md)
