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

# ValidateSchemaForManifest

> ValidateSchemaForManifest

# ValidateSchemaForManifest

解析清单并验证架构。

## 语法

```cpp theme={null}
HRESULT ValidateSchemaForManifest(
         PCWSTR manifestPath,
         WCHAR** pParsingError
)
```

### 参数

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

清单的路径。

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

返回时，包含所有解析错误的描述。

### 返回值

类型：HRESULT

成功时返回 `S_OK`。否则，返回错误代码。有关错误代码的列表，请参阅[错误代码](https://docs.xbox.com/zh-CN/reference/errorcodes.md)。

## 备注

要确定清单是否为 Microsoft 游戏开发工具包 (GDK) 清单，请调用 [GetIsGameCorePartition](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/getisgamecorepartition.md)。

要验证游戏配置文件的架构，请调用 [PackagingValidateGameConfig](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/packagingvalidategameconfig.md)。

有关打包的更多信息，请参阅[打包概览](https://docs.xbox.com/zh-CN/build/core-features/common/packaging/overviews/packaging.md)。

## 要求

**头文件：** packagingservices.h

**库：** packagingservices.lib

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

## 另请参阅

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


## Related topics

- [GetPackageVersionFromManifest](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/getpackageversionfrommanifest.md)
- [PackagingValidateGameConfig](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/packagingvalidategameconfig.md)
- [PackagingServices（API 内容）](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/packagingservices_members.md)
- [GetPackageFullNameFromManifest](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/getpackagefullnamefrommanifest.md)
- [GetPackageFamilyNameFromManifest](https://docs.xbox.com/zh-CN/reference/tools/packagingservices/functions/getpackagefamilynamefrommanifest.md)
