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

# XPackageMountWithUiResult

> XPackageMountWithUiResult

# XPackageMountWithUiResult

获取 [XPackageMountWithUIAsync](/reference/system/xpackage/functions/xpackagemountwithuiasync) 调用的结果。

## 语法

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

### 参数

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

在调用 [XPackageMountWithUIAsync](/reference/system/xpackage/functions/xpackagemountwithuiasync) 时使用的 XAsyncBlock。

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

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

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 要求

**头文件：** XPackage.h

**库：** xgameruntime.lib

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

## 另请参阅

[XPackage 成员](/reference/system/xpackage/xpackage_members)


## Related topics

- [XPackageMountWithUiAsync](/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiasync.md)
- [XPackage](/zh-CN/reference/system/xpackage/xpackage_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [[DEPRECATED] XPackageMount](/zh-CN/reference/system/xpackage/functions/xpackagemount.md)
- [XPackageCloseMountHandle](/zh-CN/reference/system/xpackage/functions/xpackageclosemounthandle.md)
