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

# GetPackageInfoFromGameConfig

> GetPackageInfoFromGameConfig

# GetPackageInfoFromGameConfig

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

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT GetPackageInfoFromGameConfig(
         PCWSTR gameConfigPath,
         WCHAR** packageFullName,
         WCHAR** packageFamilyName,
         WCHAR** pParsingError
)
```

<a id="parametersSection" />

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

<a id="retvalSection" />

### Return value

Type: HRESULT

Returns `S_OK` if successful. Otherwise, returns an error code. For a list of error codes, see [Error Codes](/reference/errorcodes).

<a id="remarksSection" />

## 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](/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest).

For more information about packaging, see [Overview of packaging](/build/core-features/common/packaging/overviews/packaging).

<a id="requirementsSection" />

## Requirements

**Header:** packagingservices.h

**Library:** packagingservices.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[PackagingServices](/reference/tools/packagingservices/packagingservices_members)


## Related topics

- [GetPackageFullNameFromManifest](/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md)
- [PackagingServices](/reference/tools/packagingservices/packagingservices_members.md)
- [Get started packaging PC titles with MSIXVC tools](/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC.md)
- [Initial configuration in Partner Center](/publishing/xstore-commerce/xstore-initial-configuration.md)
- [Getting started with packaging titles for XBOX consoles](/build/core-features/common/packaging/overviews/packaging-getting-started-for-console.md)
