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

# IXtfConsoleManager::GetDefaultConsole Method

> IXtfConsoleManager::GetDefaultConsole Method

# IXtfConsoleManager::GetDefaultConsole Method

[IXtfConsoleManager](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) インスタンスから、既定の開発コンソールに関する情報を取得します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
public:
HRESULT GetDefaultConsole(
         PXTFCONSOLEDATA pConsoleData
)  
```

<a id="parametersSection" />

### パラメーター

*pConsoleData*\
型: PXTFCONSOLEDATA

既定の開発コンソールに関する情報を含む [XTFCONSOLEDATA](/reference/tools/xtf/xtfconsolemanager/structures/xtfconsoledata-xtfconsolemanager-xbox-microsoft-t) 構造体を受け取るポインターです。

<a id="retvalSection" />

### 戻り値

型: HRESULT

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

<a id="remarksSection" />

## 解説

このメソッドは、[IXtfConsoleManager](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) インスタンスから、この PC 上で XBOX Tools Framework (XTF) のツールおよび API とともに使用する既定の開発コンソールに関する情報を取得します。この PC で XTF のツールおよび API を使用する際に、開発コンソールが特に指定されていない場合は、既定の開発コンソールが使用されます。

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

<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

- [IXtfConsoleManager::EnumerateConsoles method](/ja-jp/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/enumerateconsoles-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [IXtfEnumerateConsolesCallback::OnConsoleFound Method](/ja-jp/reference/tools/xtf/xtfconsolemanager/classes/IXtfEnumerateConsolesCallback/methods/onconsolefound-ixtfenumerateconsolescallback-xtfconsolemanager-xbox-mi.md)
- [XtfGetSavedConsoleAddress](/ja-jp/reference/tools/xtf/xtfapi/functions/xtfgetsavedconsoleaddress-xtfapi-xbox-windows-m.md)
- [IXtfConsoleManager::SetDefaultConsole Method](/ja-jp/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [IXtfConsoleManagerCallback::OnChangedDefaultConsole Method](/ja-jp/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManagerCallback/methods/onchangeddefaultconsole-ixtfconsolemanagercallback-xtfconsolemanager-xbox.md)
