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

# ValidateSchemaForManifest

> ValidateSchemaForManifest

# ValidateSchemaForManifest

剖析資訊清單並驗證結構描述。

<a id="syntaxSection" />

## 語法

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

<a id="parametersSection" />

### 參數

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

資訊清單的路徑。

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

傳回時，包含所有剖析錯誤的描述。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

如果成功，則傳回 `S_OK`，否則傳回錯誤碼。如需錯誤碼清單，請參閱[錯誤碼](/zh-TW/reference/errorcodes)。

<a id="remarksSection" />

## 備註

若要判斷資訊清單是否為 Microsoft Game Development Kit (GDK) 資訊清單，請呼叫 [GetIsGameCorePartition](/zh-TW/reference/tools/packagingservices/functions/getisgamecorepartition)。

若要驗證遊戲設定檔的結構描述，請呼叫 [PackagingValidateGameConfig](/zh-TW/reference/tools/packagingservices/functions/packagingvalidategameconfig)。

如需封裝的詳細資訊，請參閱[封裝概觀](/zh-TW/build/core-features/common/packaging/overviews/packaging)。

<a id="requirementsSection" />

## 需求

**標頭：** packagingservices.h

**程式庫：** packagingservices.lib

**支援的平台：** Windows (適用於 XBOX 主機工具)

<a id="seealsoSection" />

## 另請參閱

[PackagingServices](/zh-TW/reference/tools/packagingservices/packagingservices_members)


## Related topics

- [GetPackageVersionFromManifest](/zh-TW/reference/tools/packagingservices/functions/getpackageversionfrommanifest.md)
- [PackagingValidateGameConfig](/zh-TW/reference/tools/packagingservices/functions/packagingvalidategameconfig.md)
- [PackagingServices](/zh-TW/reference/tools/packagingservices/packagingservices_members.md)
- [Validate Api Policy](/api-reference/authentication/validate-api-policy.md)
- [Validate Entity Token](/api-reference/authentication/validate-entity-token.md)
