Skip to main content

XPackageGetMountPathSize

Gets the size required for an array to hold a mount path returned by XPackageGetMountPath.

Syntax

Parameters

mount   _In_
Type: XPackageMountHandle
The handle to the mounted installation. pathSize   _Out_
Type: size_t*
On return, contains the size required for an array.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

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

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
XPackageGetMountPath
Last modified on August 20, 2026