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

# IXtfConsoleControlClient::GetConfigSettings

> IXtfConsoleControlClient::GetConfigSettings

# IXtfConsoleControlClient::GetConfigSettings

Entraîne l'énumération de tous les paramètres de configuration, en appelant un rappel pour chaque paramètre de configuration.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT GetConfigSettings(
         IXtfConfigSettingsCallback *pCallback
)  
```

<a id="parametersSection" />

### Paramètres

*pCallback*\
Type : [IXtfConfigSettingsCallback](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback)\*

Pointeur vers une instance de l'interface [IXtfConfigSettingsCallback](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback), à appeler au fur et à mesure que chaque paramètre de configuration est énuméré.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Retourne `S_OK` en cas de réussite; sinon, retourne un code d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Cette fonction amène l'API XBOX Tools Framework (XTF) à énumérer tous les paramètres de configuration de la console de développement actuelle. Lorsqu'un paramètre de configuration est trouvé, l'API XTF appelle la fonction de rappel [OnFoundSetting](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting) de l'interface [IXtfConfigSettingsCallback](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback) implémentée dans votre application et spécifiée dans `pCallback`. L'API XTF passe un pointeur vers une structure [XTFCONFIGSETTING](/fr-CA/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting), qui décrit le paramètre de configuration, lorsqu'elle appelle votre fonction `OnFoundSetting` implémentée.

<Note>La mémoire de la structure [XTFCONFIGSETTING](/fr-CA/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) appartient à l'API XBOX Tools Framework (XTF) et est invalidée après chaque appel de votre fonction de rappel [IXtfConfigSettingsCallback::OnFoundSetting](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting). Vous devez copier les informations de la structure si vous en avez besoin ultérieurement.</Note>

Vous pouvez également utiliser la méthode [IXtfConsoleControlClient::GetAllSettings](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getallsettings) pour retourner un tableau de structures `XTFCONFIGSETTING` pour tous les paramètres de configuration de la console de développement actuelle.

Pour plus d'informations sur l'accès aux paramètres de configuration à l'aide de XBOX Tools Framework (XTF), consultez [Configuration (xbconfig.exe) (rubrique sous NDA)](/fr-CA/tools/tools-console/commandlinetools/xbconfig).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xtfconsolecontrol.h

**Bibliothèque :** xtfconsolecontrol.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

<a id="seealsoSection" />

## Voir aussi

[IXtfConfigSettingsCallback::OnFoundSetting](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting)\
[IXtfConsoleControlClient::GetAllSettings](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getallsettings)\
[IXtfConsoleControlClient](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient)\
[XtfConsoleControl](/fr-CA/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)


## Related topics

- [IXtfConsoleControlClient::GetAllSettings](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getallsettings.md)
- [IXtfConsoleControlClient::GetConfigValue](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigvalue.md)
- [IXtfConfigSettingsCallback::OnFoundSetting](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md)
- [XTFCONFIGSETTING](/fr-CA/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md)
- [IXtfConsoleControlClient](/fr-CA/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
