> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetPackageInfoFromGameConfig

> GetPackageInfoFromGameConfig

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

## Syntax

```cpp theme={null}
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](https://docs.xbox.com/reference/errorcodes.md).

## 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](https://docs.xbox.com/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md).

For more information about packaging, see [Overview of packaging](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging.md).

## Requirements

**Header:** packagingservices.h

**Library:** packagingservices.lib

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

## See also

[PackagingServices](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)


## Related topics

- [GetPackageFullNameFromManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md)
- [PackagingServices (API contents)](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)
- [Getting started with packaging for PC](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC.md)
- [Initial configuration in Partner Center](https://docs.xbox.com/publishing/xstore-commerce/xstore-initial-configuration.md)
- [Getting Started Packaging for Xbox Consoles](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging-getting-started-for-console.md)
