> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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.

## Syntaxe

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

### Paramètres

*address*\
Type : PCWSTR

\[in] Adresse de la console.

*osIdentifier*\
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

### Valeur renvoyée

Type : HRESULT

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

## 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](https://docs.xbox.com/fr/reference/tools/xtf/xtfapi/functions/xtfgetcachedtitleosversions-xtfapi-xbox-windows-m.md) 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](https://docs.xbox.com/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcache-xtfapi-xbox-windows-m.md) ou [XtfRemoveTitleOSFromCacheByVersion](https://docs.xbox.com/fr/reference/tools/xtf/xtfapi/functions/xtfremovetitleosfromcachebyversion-xtfapi-xbox-windows-m.md). Pour plus d'informations sur la gestion des fichiers Game OS provisionnés, consultez [Gestion des applications (xbapp.exe) (rubrique sous NDA)](https://docs.xbox.com/fr/tools/tools-console/commandlinetools/xbapp.md) et [Provisionnement (xbprovision.exe) (rubrique sous NDA)](https://docs.xbox.com/fr/tools/tools-console/commandlinetools/xbprovision.md).

## Configuration requise

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

**Bibliothèque :** XtfApi.lib

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

## Voir aussi

[Déploiement Run from PC (rubrique sous NDA)](https://docs.xbox.com/fr/home/setup-install/concepts/deployment.md)\
[Erreurs de transport XTF (rubrique sous NDA)](https://docs.xbox.com/fr/tools/tools-console/commandlinetools/xtf-transport-errors.md)\
[API Xtf supplémentaires](https://docs.xbox.com/fr/reference/tools/xtf/xtfapi/atoc-xtfapi.md)


## Related topics

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