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

Returns settings for the current console.

## Syntax

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

### Parameters

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

A pointer to an array of [XTFCONFIGSETTING](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md) structures describing the settings.

*count*\
Type: int\*

The number of elements in the *pConfigSettings* array.

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

## Remarks

This function returns all of the configuration settings on the current development console. The configuration settings are retrieved as an array of [XTFCONFIGSETTING](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md) structures, each of which contains the name and current value of the configuration setting.

You can also use the [IXtfConsoleControlClient::GetConfigSettings](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md) function to iterate over the configuration settings on the current console and invoke an [IXtfConfigSettingsCallback::OnFoundSetting](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md) callback function implemented in your app for each configuration setting. For more information about accessing configuration settings using XBOX Tools Framework (XTF), see [Configuration (xbconfig.exe) (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbconfig.md).

## Requirements

**Header:** xtfconsolecontrol.h

**Library:** xtfconsolecontrol.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

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


## Related topics

- [GetConfigSettings](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md)
- [XTFCONFIGSETTING](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md)
- [GetConfigValue](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigvalue.md)
- [IXtfConsoleControlClient (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [Settings Command](https://docs.xbox.com/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-settings-command.md)
