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

# XPackageGetCurrentProcessPackageIdentifier

> XPackageGetCurrentProcessPackageIdentifier

# XPackageGetCurrentProcessPackageIdentifier

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

## Syntax

```cpp theme={null}
HRESULT XPackageGetCurrentProcessPackageIdentifier(  
         size_t bufferSize,  
         char* buffer  
)  
```

### 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)](/publishing/xstore-commerce/xstore-dlc).

Refer to the following code example:

```cpp theme={null}
char id[XPACKAGE_IDENTIFIER_MAX_LENGTH];

HRESULT hr = XPackageGetCurrentProcessPackageIdentifier(_countof(id), id);
```

For information about the packaging technology used with XBOX One titles, see [Overview of Packaging](/build/core-features/common/packaging/overviews/packaging). For information about the steps to create an XVC package, see [Getting started packaging titles for XBOX consoles](/build/core-features/common/packaging/overviews/packaging-getting-started-for-console).

## Requirements

**Header:** XPackage.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Checking for updates](/publishing/xstore-commerce/xstore-checking-updates)
* [Manage and license downloadable content (DLC)](/publishing/xstore-commerce/xstore-dlc)

## See also

[Streaming Installation and Intelligent Delivery](/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery)\
[XPackage](/reference/system/xpackage/xpackage_members)


## Related topics

- [XStoreQueryPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerypackageupdatesasync.md)
- [XPackage](/reference/system/xpackage/xpackage_members.md)
- [Checking for updates](/publishing/xstore-commerce/xstore-checking-updates.md)
- [Manage and license downloadable content (DLC)](/publishing/xstore-commerce/xstore-dlc.md)
- [XPackageEnumeratePackages](/reference/system/xpackage/functions/xpackageenumeratepackages.md)
