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

# XtfCreateConsoleManager

> XtfCreateConsoleManager

# XtfCreateConsoleManager

Initialise une nouvelle instance de l'interface [IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t).

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT XtfCreateConsoleManager(
         IXtfConsoleManagerCallback *pCallback,
         REFIID riid,
         void **ppvObject
)  
```

<a id="parametersSection" />

### Paramètres

*pCallback*\
Type : IXtfConsoleManagerCallback\*

Pointeur vers le rappel [IXtfConsoleManagerCallback](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManagerCallback/ixtfconsolemanagercallback-xtfconsolemanager-xbox-microsoft-t) à appeler lorsqu'une console de développement de l'instance [IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) est ajoutée, supprimée ou modifiée.

*riid*\
Type : REFIID

Pointeur qui reçoit l'identificateur d'instance de l'instance [IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) nouvellement créée.

*ppvObject*\
Type : void\*\*

Pointeur qui reçoit une référence à l'instance [IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t) nouvellement créée.

<a id="retvalSection" />

### Valeur de retour

Type : HRESULT

Retourne `S_OK` en cas de réussite; sinon, retourne un code d'erreur HRESULT.

<a id="remarksSection" />

## Remarques

Cette fonction initialise une instance de l'interface [IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t). L'interface gère les fonctions courantes de gestion des consoles pour l'API XBOX Tools Framework (XTF). Ces fonctions comprennent l'ajout, l'énumération et la suppression de consoles de développement, l'obtention et la définition de la console de développement par défaut, ainsi que la récupération d'informations sur une console de développement.

Pour plus d'informations sur la connexion aux consoles de développement et leur interrogation, consultez [Connect (xbconnect.exe) (rubrique sous NDA)](/fr-CA/tools/tools-console/commandlinetools/xbconnect).

<a id="requirementsSection" />

## Configuration requise

**En-tête :** xtfconsolemanager.h

**Bibliothèque :** xtfconsolemanager.lib

**Plateformes prises en charge :** Windows (pour les outils de console XBOX)

<a id="seealsoSection" />

## Voir aussi

[XtfGetDefaultAddress](/fr-CA/reference/tools/xtf/xtfconsolemanager/methods/xtfgetdefaultaddress-xtfconsolemanager-xbox-windows-m)\
[Interface IXtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t)\
[XtfConsoleManager](/fr-CA/reference/tools/xtf/xtfconsolemanager/xtfconsolemanager-xbox-microsoft-n)


## Related topics

- [XtfCreateConsoleControlClient](/fr-CA/reference/tools/xtf/xtfconsolecontrol/functions/xtfcreateconsolecontrolclient-xtfconsolecontrol-xbox-microsoft-m.md)
- [Méthode IXtfConsoleManager::AddConsole](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/addconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [Méthode IXtfConsoleManager::EnumerateConsoles](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/enumerateconsoles-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [Méthode IXtfConsoleManager::GetConsole](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [Méthode IXtfConsoleManager::RemoveConsole](/fr-CA/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/removeconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
