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

# XtfGetDefaultAddress

> XtfGetDefaultAddress

# XtfGetDefaultAddress

この PC の既定の開発コンソールの IP アドレスを返します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XtfGetDefaultAddress(
         LPBSTR pbstrAddress
)  
```

<a id="parametersSection" />

### パラメーター

*pbstrAddress*\
型: LPBSTR

この PC が既定の開発コンソールに使用する IP アドレスです。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

このメソッドは、成功した場合、この PC の既定の開発コンソールの IP アドレスを `pbstrAddress` に取得します。既定の開発コンソールに関するさらに詳しい情報を取得するには、[IXtfConsoleManager::GetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) メソッドを使用することもできます。また、[IXtfConsoleManager::SetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) メソッドを呼び出して、既定の開発コンソールを設定することもできます。既定の開発コンソールは、他の XBOX Tools Framework (XTF) のツールおよび API によって使用されます。

既定の開発コンソールに対するクエリの詳細については、[Connect (xbconnect.exe) (NDA topic)](/tools/tools-console/commandlinetools/xbconnect) を参照してください。

<a id="remarks_output" />

### LPBSTR ポインターの取り扱い

このメソッドが返す LPBSTR ポインターの取り扱いについては、[Allocating and Releasing Memory for a BSTR](https://learn.microsoft.com/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=vs-2019) を参照してください。

<a id="requirementsSection" />

## 要件

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

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

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

<a id="seealsoSection" />

## 関連項目

[IXtfConsoleManager Interface](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t)\
[XtfConsoleManager](/reference/tools/xtf/xtfconsolemanager/xtfconsolemanager-xbox-microsoft-n)


## Related topics

- [XtfCreateConsoleManager](/ja-jp/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XtfGetSavedConsoleAddress](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetsavedconsoleaddress-xtfapi-xbox-windows-m.md)
- [IXtfConsoleManager::GetDefaultConsole Method](/ja-jp/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XtfGetConsoleFieldValue](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m.md)
- [XtfGetAvailableSpaceForAppInstallation](/ja-jp/reference/tools/xtf/xtfconsolecontrol/functions/xtfgetavailablespaceforappinstallation-xtfconsolecontrol-xbox-microsoft-m.md)
