Skip to main content

XPackageCloseMountHandle

Closes the specified mount handle, and unmounts the device.

Syntax

Parameters

mount   _In_
Type: XPackageMountHandle
The mount handle to be closed.

Return value

Type: void

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
After XPackageMount mounts a particular package identifier and returns a mount handle to it, XPackageCloseMountHandle unmounts the device. This might take several seconds. For more information about package identifiers, see Manage and license downloadable content (DLC). XPackageGetMountPathSize and XPackageGetMountPath are used to return the file path to the package’s contents. Only content packages can be mounted. An attempt to mount another game will yield E_ACCESS_DENIED. Example:

Requirements

Header: XPackage.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XPackage
How to create and use Downloadable Content Packages (DLC) for PC and XBOX One XPackageMount
XPackageGetMountPathSize
XPackageGetMountPath
Last modified on August 20, 2026