Skip to main content

XStoreQueryPackageIdentifier

Retrieves the package identifier for the specified store ID.

Syntax

Parameters

storeId   _In_z_
Type: char*
The ID in the store of the product that contains the package. size   _In_
Type: size_t
The number of characters in the package identifier. This size must be at least XPACKAGE_IDENTIFIER_MAX_LENGTH (33) in size. packageIdentifier   _Out_writes_z_(size)
Type: char*
Upon success, contains the package identifier. For more information about package identifiers, see Manage and license downloadable content (DLC).

Return value

Type: HRESULT Returns S_OK upon success, or an error code otherwise.

Remarks

To download and install the specified store packages, call XStoreDownloadAndInstallPackagesAsync. To get the result of a call to XStoreDownloadAndInstallPackagesAsync, call XStoreDownloadAndInstallPackagesResult. To get the number of items in the result that is returned by XStoreDownloadAndInstallPackagesResult, call XStoreDownloadAndInstallPackagesResultCount.

Requirements

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

See also

XStore
Last modified on August 20, 2026