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

# IXtfConfigSettingsCallback::OnFoundSetting

> IXtfConfigSettingsCallback::OnFoundSetting

# IXtfConfigSettingsCallback::OnFoundSetting

Fonction de rappel appelée lorsqu'un paramètre de configuration est signalé.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT OnFoundSetting(
         const PXTFCONFIGSETTING pSetting
)  
```

<a id="parametersSection" />

### Paramètres

*pSetting*\
Type : PXTFCONFIGSETTING

Pointeur vers une structure [XTFCONFIGSETTING](/fr/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) décrivant un paramètre de configuration.

<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 de rappel est appelée par [IXtfConsoleControlClient::GetConfigSettings](/fr/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings) pour chaque paramètre de configuration trouvé sur la console de développement. Cette fonction reçoit un pointeur vers une structure [XTFCONFIGSETTING](/fr/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) qui contient le nom et la valeur d'un paramètre de configuration. 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/tools/tools-console/commandlinetools/xbconfig).

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

<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](/fr/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback)\
[XtfConsoleControl](/fr/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)\
[Référence de l'API native XBOX Tools Framework](/fr/reference/tools/xtf/atoc-xtf-native)


## Related topics

- [IXtfConfigSettingsCallback::OnFoundSetting](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md)
- [IXtfConsoleControlClient::GetConfigSettings](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md)
