> ## 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.

# XPackageMountWithUiResult

> XPackageMountWithUiResult

# XPackageMountWithUiResult

获取 [XPackageMountWithUIAsync](https://docs.xbox.com/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiasync.md) 调用的结果。

## 语法

```cpp theme={null}
HRESULT XPackageMountWithUiResult(
  XAsyncBlock * async,
  XPackageMountHandle * mount
) noexcept;
```

### 参数

*async*  \_Inout\_\
类型：XAsyncBlock \*

在调用 [XPackageMountWithUIAsync](https://docs.xbox.com/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiasync.md) 时使用的 XAsyncBlock。

*mount*  \_Out\_\
类型：XPackageMountHandle \*

返回时，包含装载的句柄。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 要求

**头文件：** XPackage.h

**库：** xgameruntime.lib

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

## 另请参阅

[XPackage 成员](https://docs.xbox.com/zh-CN/reference/system/xpackage/xpackage_members.md)


## Related topics

- [XPackageMountWithUiAsync](https://docs.xbox.com/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiasync.md)
- [XPackage（API 内容）](https://docs.xbox.com/zh-CN/reference/system/xpackage/xpackage_members.md)
- [在 Unity 项目中使用 GDK API 的 C# 包装器](https://docs.xbox.com/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XPackageMount](https://docs.xbox.com/zh-CN/reference/system/xpackage/functions/xpackagemount.md)
- [XPackageCloseMountHandle](https://docs.xbox.com/zh-CN/reference/system/xpackage/functions/xpackageclosemounthandle.md)
