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

Callback function called when a configuration setting is being reported.

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

*pSetting*\
Type: PXTFCONFIGSETTING

A pointer to an [XTFCONFIGSETTING](/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) structure describing a configuration setting.

<a id="retvalSection" />

### Return value

Type: HRESULT

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

<a id="remarksSection" />

## Remarks

This callback function is invoked by [IXtfConsoleControlClient::GetConfigSettings](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings) for each configuration setting found on the development console. This function receives a pointer to an [XTFCONFIGSETTING](/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) structure that contains the name and value of a configuration setting. For more information about accessing configuration settings using XBOX Tools Framework (XTF), see [Configuration (xbconfig.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbconfig).

<Note>Memory for the [XTFCONFIGSETTING](/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) structure is owned by the XBOX Tools Framework (XTF) API and is invalidated after each invocation of this callback function. You must copy the information in the structure if you need it for later use.</Note>

<a id="requirementsSection" />

## Requirements

**Header:** xtfconsolecontrol.h

**Library:** xtfconsolecontrol.lib

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

<a id="seealsoSection" />

## See also

[IXtfConfigSettingsCallback](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback)\
[XtfConsoleControl](/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)\
[XBOX Tools Framework native API reference](/reference/tools/xtf/atoc-xtf-native)


## Related topics

- [IXtfConsoleControlClient::GetConfigSettings](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings.md)
- [IXtfConsoleControlClient::GetAllSettings](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getallsettings.md)
- [XTFCONFIGSETTING](/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting.md)
- [IXtfConsoleControlClient::GetConfigValue](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigvalue.md)
- [IXtfConfigSettingsCallback](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback.md)
