GetPackageInfoFromGameConfig

Returns the full name and the family name of the package for the specified game configuration file.

Syntax

HRESULT GetPackageInfoFromGameConfig(
         PCWSTR gameConfigPath,
         WCHAR** packageFullName,
         WCHAR** packageFamilyName,
         WCHAR** pParsingError
)

Parameters

gameConfigPath   _In_
Type: PCWSTR

The path to the MicrosoftGame.config file.

packageFullName   _Out_
Type: WCHAR**

On return, contains the full name of the package.

packageFamilyName   _Out_
Type: WCHAR**

On return, contains the family name of the package.

pParsingError   _Out_
Type: WCHAR**

In a failure case, contains more information about why the parsing failed.

Return value

Type: HRESULT

Returns S_OK if successful. Otherwise, returns an error code. For a list of error codes, see Error Codes.

Remarks

The caller must free the returned strings by using CoTaskMemFree.

To get the full name of the package for a specified application manifest, call GetPackageFullNameFromManifest.

For more information about packaging, see Overview of packaging.

Requirements

Header: packagingservices.h

Library: packagingservices.lib

Supported platforms: Windows (for Xbox console tools)

See also

PackagingServices