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

# XStoreShowRedeemTokenUIResult

> XStoreShowRedeemTokenUIResult

# XStoreShowRedeemTokenUIResult

获取对 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) 调用的结果。

## 语法

```cpp theme={null}
HRESULT XStoreShowRedeemTokenUIResult(  
         XAsyncBlock* async  
)  
```

### 参数

*async*   \_Inout\_\
类型：[XAsyncBlock\*](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md)

传递给 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) 的 XAsyncBlock。[XAsyncBlock](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md) 可用于轮询调用的状态并检索调用结果。有关详细信息，请参阅 [XAsyncBlock](https://docs.xbox.com/zh-CN/reference/system/xasync/structs/xasyncblock.md)。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

E\_ABORT 表示用户取消了购买流程。

## 备注

此结果函数允许你检索 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) 的执行结果。因此，应在调用 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md) 之后调用此函数，通常是在回调函数的上下文中。此函数在失败情况下确定为何未显示 UI 时特别有用。

有关使用示例，请参阅 [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md)。

## 要求

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

**库：** xgameruntime.lib

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

## 另请参阅

[XStore](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)\
[XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md)


## Related topics

- [XStoreShowRedeemTokenUIAsync](https://docs.xbox.com/zh-CN/reference/system/xstore/functions/xstoreshowredeemtokenuiasync.md)
- [XStore（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xstore/xstore_members.md)
- [在 Unity 项目中使用 GDK API 的 C# 包装器](https://docs.xbox.com/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [PFInventoryRedeemMicrosoftStoreInventoryItemsGetResult](https://docs.xbox.com/zh-CN/services/playfab/api-references/c/pfinventory/functions/pfinventoryredeemmicrosoftstoreinventoryitemsgetresult.md)
- [Redeem Microsoft Store Inventory Items](https://docs.xbox.com/api-reference/inventory/redeem-microsoft-store-inventory-items.md)
