PackagingValidateGameConfig

Validates the schema of a game configuration file.

Syntax

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.

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.

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