Skip to main content

XPackageGetCurrentProcessPackageIdentifier

Returns an installation identity string that identifies the installation for this process.

Syntax

Parameters

bufferSize   _In_
Type: size_t
The size of the buffer in the buffer parameter. buffer   _Out_writes_(bufferSize)
Type: char*
On return, contains an installation identity string that identifies the installation for this process.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The XPackageGetCurrentProcessPackageIdentifier function returns a package identifier string that is used to query this process’s installation. The string’s length must not be greater than the XPACKAGE_IDENTIFIER_MAX_LENGTH object. For more information about package identifiers, see Manage and license downloadable content (DLC). Refer to the following code example:
For information about the packaging technology used with XBOX One titles, see Overview of Packaging. For information about the steps to create an XVC package, see Getting started packaging titles for XBOX consoles.

Requirements

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

Conceptual documentation

See also

Streaming Installation and Intelligent Delivery
XPackage
Last modified on August 20, 2026