> ## 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`，否則傳回錯誤碼。如需錯誤碼清單，請參閱[錯誤碼](/zh-TW/reference/errorcodes)。

<a id="remarksSection" />

## 備註

驗證包括確認下列條件。

* 列出的非開發人員可執行檔不超過一個。
* 所有指定的可執行檔都存在。

若要驗證資訊清單的結構描述，請呼叫 [ValidateSchemaForManifest](/zh-TW/reference/tools/packagingservices/functions/validateschemaformanifest)。

如需封裝的詳細資訊，請參閱[封裝概觀](/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

- [ValidateSchemaForManifest](/zh-TW/reference/tools/packagingservices/functions/validateschemaformanifest.md)
- [PackagingServices](/zh-TW/reference/tools/packagingservices/packagingservices_members.md)
- [建立套件 (makepkg.exe)](/zh-TW/build/core-features/common/packaging/deployment/makepkg.md)
- [分割套件 (splitpkg.exe)](/zh-TW/build/core-features/common/packaging/deployment/splitpkg.md)
- [Submission Validator (SubmissionValidator.dll)](/zh-TW/build/core-features/common/packaging/subval/submissionvalidator.md)
