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

验证游戏配置文件的架构。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*gameConfigPath*   \_In\_\
类型：PCWSTR

*MicrosoftGame.config* 文件的路径。

*pValidationWarnings*   \_Out\_\
类型：WCHAR\*\*

返回时，包含针对已验证配置文件部分的所有警告。

<a id="retvalSection" />

### 返回值

类型：HRESULT

成功时返回 `S_OK`。否则，返回错误代码。有关错误代码的列表，请参阅[错误代码](/reference/errorcodes)。

<a id="remarksSection" />

## 备注

验证包括核实以下条件。

* 列出的非开发人员可执行文件不超过一个。
* 指定的所有可执行文件均存在。

要验证清单的架构，请调用 [ValidateSchemaForManifest](/reference/tools/packagingservices/functions/validateschemaformanifest)。

有关打包的更多信息，请参阅[打包概览](/build/core-features/common/packaging/overviews/packaging)。

<a id="requirementsSection" />

## 要求

**头文件：** packagingservices.h

**库：** packagingservices.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

<a id="seealsoSection" />

## 另请参阅

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


## Related topics

- [ValidateSchemaForManifest](/zh-CN/reference/tools/packagingservices/functions/validateschemaformanifest.md)
- [PackagingServices](/zh-CN/reference/tools/packagingservices/packagingservices_members.md)
- [Make package (makepkg.exe)](/zh-CN/build/core-features/common/packaging/deployment/makepkg.md)
- [Submission Validator (SubmissionValidator.dll)](/zh-CN/build/core-features/common/packaging/subval/submissionvalidator.md)
- [GetPackageVersionFromManifest](/zh-CN/reference/tools/packagingservices/functions/getpackageversionfrommanifest.md)
