Partager via


XtfGetDefaultAddress

Returns the IP address of the default development console for this PC.

Syntax

HRESULT XtfGetDefaultAddress(
         LPBSTR pbstrAddress
)  

Parameters

pbstrAddress
Type: LPBSTR

The IP address that this PC uses for its default development console.

Return value

Type: HRESULT

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

Remarks

This method, if successful, gets the IP address of the default development console for this PC in pbstrAddress. You can also use the IXtfConsoleManager::GetDefaultConsole method to retrieve more information about the default development console, or set the default development console by invoking the IXtfConsoleManager::SetDefaultConsole method. The default development console is used by other Xbox Tools Framework (XTF) tools and API.

For more information about querying the default development console, see Connect (xbconnect.exe) (NDA topic)Autorisation obligatoire.

Handling LPBSTR pointers

For more information about handling LPBSTR pointers returned by this method, see Allocating and Releasing Memory for a BSTR.

Requirements

Header: xtfconsolemanager.h

Library: xtfconsolemanager.lib

Supported platforms: Windows (for Xbox console tools)

See also

IXtfConsoleManager Interface
XtfConsoleManager