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

# XtfCacheTitleOS

> XtfCacheTitleOS

# XtfCacheTitleOS

Ajoute un Game OS au cache du système d'exploitation.

<a id="syntaxSection" />

## Syntaxe

```cpp theme={null}
HRESULT XtfCacheTitleOS(
         PCWSTR address,
         PCWSTR osIdentifier
)  
```

<a id="parametersSection" />

### Paramètres

*address*<br />Type : PCWSTR

\[in] Adresse de la console.

*osIdentifier*<br />Type : PCWSTR

\[in] Identificateur du Game OS à ajouter. Cet identificateur peut être l'un des éléments suivants :

* Le chemin d'accès complet et le nom d'un fichier MicrosoftGame.config qui contient le numéro de version en quatre parties de la version du Game OS à ajouter
* Le chemin d'accès complet et le nom d'un fichier GameOs.xvd
* Le chemin d'accès complet d'un répertoire qui contient un fichier MicrosoftGame.config ou GameOS.vxd
* Le numéro de version en quatre parties du Game OS à ajouter

Exemples d'identificateurs valides :

* D:\MyGame
* \MyDevPC\share\MyGame\MicrosoftGame.config
* xd:\Titles\MyGamePFN\GameOs.xvd
* 10.0.18236.1002

<a id="retvalSection" />

### Valeur renvoyée

Type : HRESULT

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

<a id="remarksSection" />

## Remarques

Utilisez cette fonction pour gérer les fichiers Game OS provisionnés en ajoutant le Game OS spécifié au cache sur la console. Vous pouvez utiliser la fonction [XtfGetCachedTitleOSVersions](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m) pour obtenir les informations de version de chaque Game OS mis en cache sur la console. Vous pouvez également supprimer un Game OS existant du cache en appelant les fonctions [XtfRemoveTitleOSFromCache](/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m) ou [XtfRemoveTitleOSFromCacheByVersion](/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m). Pour plus d'informations sur la gestion des fichiers Game OS provisionnés, consultez [Gestion des applications (xbapp.exe) (rubrique sous NDA)](/fr/tools/tools-console/commandlinetools/xbapp) et [Provisionnement (xbprovision.exe) (rubrique sous NDA)](/fr/tools/tools-console/commandlinetools/xbprovision).

<a id="requirementsSection" />

## Configuration requise

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

**Bibliothèque :** XtfApi.lib

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

<a id="seealsoSection" />

## Voir aussi

[Déploiement Run from PC (rubrique sous NDA)](/fr/home/setup-install/concepts/deployment)<br />[Erreurs de transport XTF (rubrique sous NDA)](/fr/tools/tools-console/commandlinetools/xtf-transport-errors)<br />[API Xtf supplémentaires](/fr/reference/tools/xtf/xtfapi/atoc-xtfapi)


## Related topics

- [XtfRemoveTitleOSFromCache](/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md)
- [XtfRemoveTitleOSFromCacheByVersion](/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m.md)
- [XtfGetCachedTitleOSVersions](/fr/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOS](/fr/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](/fr/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
