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

# [DEPRECATED] XPackageMount

> [DEPRECATED] XPackageMount

# \[DEPRECATED] XPackageMount

<Note>此函数现已弃用。请改用 [XPackageMountWithUiAsync](/reference/system/xpackage/functions/xpackagemountwithuiasync)。</Note>

装载指定内容的安装，并返回其装载句柄。

## 语法

```cpp theme={null}
HRESULT XPackageMount(  
         const char* packageIdentifier,  
         XPackageMountHandle* mount  
)  
```

## 要求

**头文件：** XPackage.h

**库：** xgameruntime.lib

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

## 概念文档

* [GDK 可下载内容 (DLC) 包](/build/core-features/common/packaging/packaging-downloadable-content-dlc)
* [XBOX 主机上的本地存储](/build/console-features/storage/local-storage)
* [时间敏感型线程](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 另请参阅

[XPackageMountWithUiAsync](/reference/system/xpackage/functions/xpackagemountwithuiasync)


## Related topics

- [XPackageMountWithUiAsync](/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiasync.md)
- [XPackageMountWithUiResult](/zh-CN/reference/system/xpackage/functions/xpackagemountwithuiresult.md)
- [XPackageCloseMountHandle](/zh-CN/reference/system/xpackage/functions/xpackageclosemounthandle.md)
- [GDK 可下载内容 (DLC) 包](/zh-CN/build/core-features/common/packaging/packaging-downloadable-content-dlc.md)
- [XPackage](/zh-CN/reference/system/xpackage/xpackage_members.md)
