Partager via


XtfCreateConsoleManager

Initializes a new instance of the IXtfConsoleManager interface.

Syntax

HRESULT XtfCreateConsoleManager(
         IXtfConsoleManagerCallback *pCallback,
         REFIID riid,
         void **ppvObject
)  

Parameters

pCallback
Type: IXtfConsoleManagerCallback*

A pointer to the IXtfConsoleManagerCallback callback to invoke when a development console in the IXtfConsoleManager instance is added, removed, or changed.

riid
Type: REFIID

A pointer that receives the instance identifier of the newly created IXtfConsoleManager instance.

ppvObject
Type: void**

A pointer that receives a reference to the newly created IXtfConsoleManager instance.

Return value

Type: HRESULT

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

Remarks

This function initializes an instance of the IXtfConsoleManager interface. The interface handles common console management functions for the Xbox Tools Framework (XTF) API. These functions include adding, enumerating, and removing development consoles; getting and setting the default development console; and retrieving information about a development console.

For more information about connecting and querying development consoles, see Connect (xbconnect.exe) (NDA topic)Autorisation obligatoire.

Requirements

Header: xtfconsolemanager.h

Library: xtfconsolemanager.lib

Supported platforms: Windows (for Xbox console tools)

See also

XtfGetDefaultAddress
IXtfConsoleManager Interface
XtfConsoleManager