Skip to main content

IXtfConsoleManager::SetDefaultConsole Method

Sets the default development console for XBOX Tools Framework (XTF) tools and API.

Syntax

Parameters

pszAlias
Type: LPCWSTR
A pointer to the name of the development console to set as the default development console.

Return value

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

Remarks

This method sets the development console with the alias specified in pszAlias from the IXtfConsoleManager instance as the default development console to use with XBOX Tools Framework (XTF) tools and API on this PC. After this method is successfully called, the IXtfConsoleManager instance invokes the OnChangedDefaultConsole callback method from the associated IXtfConsoleManagerCallback instance. For more information about connecting and querying development consoles, see Connect (xbconnect.exe) (NDA topic).

Requirements

Header: xtfconsolemanager.h Library: xtfconsolemanager.lib Supported platforms: Windows (for XBOX console tools)

See also

IXtfConsoleManager Interface
XtfConsoleManager
Last modified on August 20, 2026