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

# PackagingValidateGameConfig

> PackagingValidateGameConfig

# PackagingValidateGameConfig

Validates the schema of a game configuration file.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

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

<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

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

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

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