> ## 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\_\
Type: PCWSTR

*MicrosoftGame.config* ファイルへのパスです。

*pValidationWarnings*   \_Out\_\
Type: WCHAR\*\*

戻り値で、検証された構成ファイルの各部分に対する警告を格納します。

<a id="retvalSection" />

### 戻り値

Type: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合はエラー コードを返します。エラー コードの一覧については、「[エラー コード](/reference/errorcodes)」をご覧ください。

<a id="remarksSection" />

## 解説

検証には、次の条件の確認が含まれます。

* 開発者向けではない実行可能ファイルが 2 つ以上リストされていないこと。
* 指定されたすべての実行可能ファイルが存在していること。

マニフェストのスキーマを検証するには、[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)
