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

# GetAllSettings

> IXtfConsoleControlClient::GetAllSettings

# IXtfConsoleControlClient::GetAllSettings

現在のコンソールの設定を返します。

## 構文

```cpp theme={null}
HRESULT GetAllSettings(
         XTFCONFIGSETTING **pConfigSettings,
         int *count
)  
```

### パラメーター

*pConfigSettings*\
型: [XTFCONFIGSETTING](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md)\*\*

設定を記述する [XTFCONFIGSETTING](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md) 構造体の配列へのポインターです。

*count*\
型: int\*

*pConfigSettings* 配列内の要素数です。

### 戻り値

型: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合は HRESULT エラー コードを返します。

## 解説

この関数は、現在の開発コンソールのすべての構成設定を返します。構成設定は [XTFCONFIGSETTING](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md) 構造体の配列として取得され、各構造体には構成設定の名前と現在の値が格納されます。

また、[IXtfConsoleControlClient::GetConfigSettings](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md) 関数を使用して、現在のコンソール上の構成設定を反復処理し、構成設定ごとにアプリで実装した [IXtfConfigSettingsCallback::OnFoundSetting](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md) コールバック関数を呼び出すこともできます。XBOX Tools Framework (XTF) を使用した構成設定へのアクセスの詳細については、[Configuration (xbconfig.exe) (NDA topic)](https://docs.xbox.com/ja-jp/tools/tools-console/commandlinetools/xbconfig.md) を参照してください。

## 要件

**ヘッダー:** xtfconsolecontrol.h

**ライブラリ:** xtfconsolecontrol.lib

**サポートされるプラットフォーム:** Windows (XBOX コンソール ツール用)

## 関連項目

[IXtfConfigSettingsCallback::OnFoundSetting](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md)\
[IXtfConsoleControlClient::GetConfigSettings](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md)\
[IXtfConsoleControlClient](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)\
[XtfConsoleControl](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members.md)


## Related topics

- [GetConfigSettings](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md)
- [XTFCONFIGSETTING](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md)
- [GetConfigValue](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigvalue.md)
- [IXtfConsoleControlClient (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [GetPageFaultAllocationOutput](https://docs.xbox.com/ja-jp/reference/graphics/d3d12/interfaces/id3d12deviceremovedextendeddata/methods/id3d12deviceremovedextendeddata_getpagefaultallocationoutput_public.md)
