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

# PackagingValidateGameConfig

> PackagingValidateGameConfig

Validates the schema of a game configuration file.

## Syntax

```cpp theme={null}
HRESULT PackagingValidateGameConfig(
         PCWSTR gameConfigPath,
         WCHAR** pValidationWarnings
)
```

### Parameters

*gameConfigPath*   \_In\_\
Type: PCWSTR

The path to the *MicrosoftGame.config* file.

*pValidationWarnings*   \_Out\_\
Type: WCHAR\*\*

On return, contains any warnings for the parts of the configuration file that were validated.

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

Validation includes verifying the following conditions.

* No more than one non-developer executable is listed.
* All specified executable files are present.

To validate the schema of a manifest, call [ValidateSchemaForManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/validateschemaformanifest.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

- [ValidateSchemaForManifest](https://docs.xbox.com/reference/tools/packagingservices/functions/validateschemaformanifest.md)
- [PackagingServices (API contents)](https://docs.xbox.com/reference/tools/packagingservices/packagingservices_members.md)
- [Title packaging, content updates, and streaming-installation testing](https://docs.xbox.com/build/core-features/common/packaging/title-packaging-streaming-install-testing.md)
- [MSIXVC2 packaging overview](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging-msixvc2-overview.md)
- [Getting started with MSIXVC2 for PC](https://docs.xbox.com/build/core-features/common/packaging/overviews/packaging-getting-started-for-PC-msixvc2.md)
