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

# XtfGetSavedConsoleAddress

> XtfGetSavedConsoleAddress

# XtfGetSavedConsoleAddress

XBOX Tools Framework (XTF) アプリの既定のコンソールの Tools IP アドレスを取得します。

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XtfGetSavedConsoleAddress(
         BSTR* savedAddress
)  
```

<a id="parametersSection" />

### Parameters

*savedAddress*<br />型: BSTR\*

\[in] XTF アプリの既定のコンソールのアドレスへのポインターです。

<a id="retvalSection" />

### Return value

型: HRESULT

成功した場合は `S_OK` を返します。それ以外の場合は、HRESULT エラー コードを返します。

<a id="remarksSection" />

## Remarks

この関数は、XBOX Tools Framework (XTF) アプリの既定のコンソールとして [IXtfConsoleManager::SetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) メソッドにより指定された開発機から、Tools IP アドレスを取得します。`XtfGetSavedConsoleAddress` は、コンソール マネージャーの [IXtfConsoleManager::GetDefaultConsole method](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) によって返される [XTFCONSOLEDATA](/reference/tools/xtf/xtfconsolemanager/structures/xtfconsoledata-xtfconsolemanager-xbox-microsoft-t) 構造体の `bstrAddress` メンバーの値を取得するユーティリティ関数です。コンソール マネージャーの詳細については、[IXtfConsoleManager Interface](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) を参照してください。

<a id="requirementsSection" />

## Requirements

**ヘッダー:** xtfutils.h

**ライブラリ:** XtfApi.lib

**サポートされているプラットフォーム:** Windows (XBOX コンソール ツール用)

## See also

[Run from PC Deployment (NDA topic)](/home/setup-install/concepts/deployment)<br />[XTF Transport Errors (NDA topic)](/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[Additional Xtf APIs](/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfGetDefaultAddress](/ja-jp/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m.md)
- [XtfGetConsoleFieldValue](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m.md)
- [XtfCreateConsoleManager](/ja-jp/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XtfGetConsoleInfoList](/ja-jp/reference/tools/xtf/xtfconsolecontrol/functions/xtfgetconsoleinfolist-xtfconsolecontrol-xbox-microsoft-m.md)
- [XtfGetAvailableSpaceForAppInstallation](/ja-jp/reference/tools/xtf/xtfconsolecontrol/functions/xtfgetavailablespaceforappinstallation-xtfconsolecontrol-xbox-microsoft-m.md)
