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

回報組態設定時呼叫的回呼函式。

<a id="syntaxSection" />

## 語法

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

<a id="parametersSection" />

### 參數

*pSetting*\
類型：PXTFCONFIGSETTING

指向描述組態設定之 [XTFCONFIGSETTING](/zh-TW/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) 結構的指標。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

如果成功，則傳回 `S_OK`；否則傳回 HRESULT 錯誤碼。

<a id="remarksSection" />

## 備註

[IXtfConsoleControlClient::GetConfigSettings](/zh-TW/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/methods/ixtfconsolecontrolclient_getconfigsettings) 會針對在開發主機上找到的每個組態設定叫用此回呼函式。此函式會接收指向 [XTFCONFIGSETTING](/zh-TW/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) 結構的指標，該結構包含組態設定的名稱與值。如需使用 XBOX Tools Framework (XTF) 存取組態設定的詳細資訊，請參閱[組態 (xbconfig.exe) (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbconfig)。

<Note>[XTFCONFIGSETTING](/zh-TW/reference/tools/xtf/xtfconsolecontrol/structs/xtfconfigsetting) 結構的記憶體由 XBOX Tools Framework (XTF) API 所擁有，且會在每次叫用此回呼函式之後失效。如果您之後需要使用結構中的資訊，必須加以複製。</Note>

<a id="requirementsSection" />

## 需求

**標頭：** xtfconsolecontrol.h

**程式庫：** xtfconsolecontrol.lib

**支援的平台：** Windows (適用於 XBOX 主機工具)

<a id="seealsoSection" />

## 另請參閱

[IXtfConfigSettingsCallback](/zh-TW/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/ixtfconfigsettingscallback)\
[XtfConsoleControl](/zh-TW/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members)\
[XBOX Tools Framework 原生 API 參考](/zh-TW/reference/tools/xtf/atoc-xtf-native)


## Related topics

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