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

# XPackage (contenu de l'API)

> XPackage

# XPackage

Documentation de référence des API XPackage.

## Fonctions

| Fonction | Description |
| - | - |
| [XPackageChangeChunkInstallOrder](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagechangechunkinstallorder.md) | Définit les blocs sélectionnés à installer en premier. |
| [XPackageChunkAvailabilityCallback](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagechunkavailabilitycallback.md) | Rappel défini par l'utilisateur utilisé par [XPackageEnumerateChunkAvailability](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumeratechunkavailability.md). |
| [XPackageCloseInstallationMonitorHandle](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagecloseinstallationmonitorhandle.md) | Ferme un moniteur d'installation spécifié. |
| [XPackageCloseMountHandle](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageclosemounthandle.md) | Ferme le handle de montage spécifié. |
| [XPackageCreateInstallationMonitor](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagecreateinstallationmonitor.md) | Crée un moniteur de l'état d'une installation. |
| [XPackageEnumerateChunkAvailability](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumeratechunkavailability.md) | Examine le package d'installation et énumère la disponibilité de tous les blocs qui correspondent aux sélecteurs spécifiés. |
| [XPackageEnumerateFeatures](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumeratefeatures.md) | Énumère les fonctionnalités définies dans le fichier de disposition du package. |
| [XPackageEnumeratePackages](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumeratepackages.md) | Recherche les packages installés ou en cours d'installation liés au processus appelant. |
| [XPackageEnumerationCallback](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumerationcallback.md) | Rappel utilisé par [XPackageEnumeratePackages](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageenumeratepackages.md). |
| [XPackageEstimateDownloadSize](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageestimatedownloadsize.md) | Calcule la taille de téléchargement des blocs qui correspondent aux sélecteurs d'installation spécifiés. |
| [XPackageFeatureEnumerationCallback](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagefeatureenumerationcallback.md) | Rappel utilisé par XPackageEnumerateFeatures pour énumérer chaque fonctionnalité. |
| [XPackageFindChunkAvailability](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagefindchunkavailability.md) | Retourne la disponibilité minimale de l'ensemble des blocs qui correspondent aux sélecteurs spécifiés. |
| [XPackageGetCurrentProcessPackageIdentifier](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetcurrentprocesspackageidentifier.md) | Retourne une chaîne d'identité d'installation qui identifie l'installation de ce processus. |
| [XPackageGetInstallationProgress](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetinstallationprogress.md) | Retourne la progression actuelle d'une installation. |
| [XPackageGetMountPath](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetmountpath.md) | Obtient le chemin d'accès à une installation montée. |
| [XPackageGetPackageKind](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetpackagekind.md) | Renvoie le [XPackageKind](https://docs.xbox.com/fr/reference/system/xpackage/enums/xpackagekind.md) d'un package. |
| [XPackageGetMountPathSize](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetmountpathsize.md) | Obtient la taille requise pour qu'un tableau contienne un chemin de montage retourné par [XPackageGetMountPath](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetmountpath.md). |
| [XPackageGetUserLocale](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetuserlocale.md) | Obtient les paramètres régionaux actuels de l'utilisateur. |
| [XPackageGetWriteStats](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetwritestats.md) | Obtient les statistiques d'écriture de sortie (writeStats). |
| [XPackageInstallationProgressCallback](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstallationprogresscallback.md) | Rappel utilisé par [XPackageRegisterInstallationProgressChanged](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageregisterinstallationprogresschanged.md). |
| [XPackageInstallChunks](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstallchunks.md) | Démarre l'installation de blocs. |
| [XPackageInstallChunksAsync](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstallchunksasync.md) | Démarre l'installation de blocs. |
| [XPackageInstallChunksResult](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstallchunksresult.md) | Récupère le résultat d'un appel à [XPackageInstallChunksAsync](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstallchunksasync.md). |
| [XPackageInstalledCallback](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageinstalledcallback.md) | Rappel défini par l'utilisateur utilisé par la fonction XPackageRegisterPackageInstalled. |
| [XPackageIsPackagedProcess](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageispackagedprocess.md) | Retourne une valeur booléenne qui indique si le processus actuel possède une identité d'installation. |
| [XPackageMount](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagemount.md) | Cette fonction est désormais dépréciée. Utilisez plutôt XPackageMountWithUiAsync. |
| [XPackageMountWithUiAsync](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagemountwithuiasync.md) | Monte de manière asynchrone l'installation du contenu spécifié et retourne un handle de montage vers celle-ci. |
| [XPackageMountWithUiResult](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagemountwithuiresult.md) | Obtient les résultats d'un appel à XPackageMountWithUIAsync. |
| [XPackageRegisterInstallationProgressChanged](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageregisterinstallationprogresschanged.md) | Inscrit un rappel à appeler lorsque la progression de l'installation change. |
| [XPackageRegisterPackageInstalled](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageregisterpackageinstalled.md) | Inscrit un rappel à appeler lorsqu'une installation est terminée. |
| [XPackageUninstallPackage](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageuninstallpackage.md) | Désinstalle un package donné. |
| [XPackageUninstallChunks](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageuninstallchunks.md) | Désinstalle les blocs qui correspondent aux sélecteurs spécifiés. |
| [XPackageUninstallUWPInstance](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageuninstalluwpinstance.md) | Désinstalle une instance de plateforme Windows universelle (UWP) d'un package particulier pour l'utilisateur actuel si elle est actuellement installée. |
| [XPackageUnregisterInstallationProgressChanged](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageunregisterinstallationprogresschanged.md) | Désinscrit un rappel de modification de la progression d'installation inscrit précédemment. |
| [XPackageUnregisterPackageInstalled](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageunregisterpackageinstalled.md) | Désinscrit un rappel de fin d'installation inscrit précédemment. |
| [XPackageUpdateInstallationMonitor](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackageupdateinstallationmonitor.md) | Actualise la progression retournée par [XPackageGetInstallationProgress](https://docs.xbox.com/fr/reference/system/xpackage/functions/xpackagegetinstallationprogress.md). |

## Structures

| Structure | Description |
| - | - |
| [XPackageChunkSelector](https://docs.xbox.com/fr/reference/system/xpackage/structs/xpackagechunkselector.md) | Définit les critères de sélection d'un ensemble de blocs. |
| [XPackageDetails](https://docs.xbox.com/fr/reference/system/xpackage/structs/xpackagedetails.md) | Contient des détails sur une installation. |
| [XPackageFeature](https://docs.xbox.com/fr/reference/system/xpackage/structs/xpackagefeature.md) | Décrit une fonctionnalité. |
| [XPackageInstallationProgress](https://docs.xbox.com/fr/reference/system/xpackage/structs/xpackageinstallationprogress.md) | Contient des informations sur la progression d'une installation. |
| [XPackageWriteStats](https://docs.xbox.com/fr/reference/system/xpackage/structs/xpackagewritestats.md) | Contient les statistiques d'écriture de sortie (writeStats). |

## Énumérations

| Énumération | Description |
| - | - |
| [XPackageChunkAvailability](https://docs.xbox.com/fr/reference/system/xpackage/enums/xpackagechunkavailability.md) | Indique la disponibilité des blocs d'installation. |
| [XPackageChunkSelectorType](https://docs.xbox.com/fr/reference/system/xpackage/enums/xpackagechunkselectortype.md) | Indique le type de sélecteur. |
| [XPackageEnumerationScope](https://docs.xbox.com/fr/reference/system/xpackage/enums/xpackageenumerationscope.md) | Indique l'étendue des packages à retourner lors de l'énumération des packages d'installation. |
| [XPackageKind](https://docs.xbox.com/fr/reference/system/xpackage/enums/xpackagekind.md) | Indique le type du package d'installation. |

## Codes d'erreur

Les codes d'erreur suivants peuvent être retournés par les API XPackage. Pour obtenir la liste complète, consultez [Codes d'erreur](https://docs.xbox.com/fr/reference/errorcodes.md).

| Code | Valeur | Description |
| - | - | - |
| E\_GAMEPACKAGE\_APP\_NOT\_PACKAGED | 0x89245200 | Le jeu n'est pas empaqueté dans un conteneur. |
| E\_GAMEPACKAGE\_NO\_INSTALLED\_LANGUAGES | 0x89245201 | Le jeu utilise Intelligent Delivery pour installer les langues de manière sélective, mais aucune n'est installée. |
| E\_GAMEPACKAGE\_NO\_STORE\_ID | 0x89245202 | L'attribut StoreId doit être défini dans la configuration du jeu de l'application. |
| E\_GAMEPACKAGE\_INVALID\_SELECTOR | 0x89245203 | Un sélecteur de bloc fourni ne correspond à aucun bloc du package. |
| E\_GAMEPACKAGE\_DOWNLOAD\_REQUIRED | 0x89245204 | Un ou plusieurs blocs requis doivent être téléchargés pour monter le package sur cet appareil. |
| E\_GAMEPACKAGE\_NO\_TAG\_CHANGE | 0x89245205 | Modifiez les blocs installés dans ce package à l'aide des fonctionnalités (Features), et non des balises. |
| E\_GAMEPACKAGE\_DLC\_NOT\_SUPPORTED | 0x89245206 | Le jeu ne prend pas en charge le package DLC. Vérifiez la compatibilité DLC dans la configuration du jeu. |
| E\_GAMEPACKAGE\_DUPLICATE\_ID\_VALUES | 0x89245207 | Le package contient plusieurs exécutables mappés au même attribut 'ID'. Recherchez les attributs 'ID' en double dans les éléments 'Executable'. |
| E\_GAMEPACKAGE\_NO\_PACKAGE\_IDENTIFIER | 0x89245208 | Impossible de résoudre un identificateur pour le package. Le package n'est peut-être pas installé. |

## Documentation conceptuelle

* [Vérification des mises à jour avec XStore](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-checking-updates.md)
* [Octroi de l'accès au contenu avec XStore](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-granting-access.md)
* [Gestion et licences des packages facultatifs avec XStore](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-dlc.md)

## Voir aussi

[Référence des API système](https://docs.xbox.com/fr/reference/system/gc-reference-system-toc.md)\
[Référence des API XStore](https://docs.xbox.com/fr/reference/system/xstore/xstore_members.md)


## Related topics

- [Création de packages](https://docs.xbox.com/fr/build/core-features/common/packaging/gc-packaging-toc.md)
- [Packages de contenu téléchargeable (DLC) du GDK](https://docs.xbox.com/fr/build/core-features/common/packaging/packaging-downloadable-content-dlc.md)
- [Intelligent Delivery : contenu OnDemand](https://docs.xbox.com/fr/build/core-features/common/packaging/intelligentdelivery-ondemand.md)
- [Gérer et accorder des licences pour le contenu téléchargeable (DLC)](https://docs.xbox.com/fr/publishing/xstore-commerce/xstore-dlc.md)
- [Prise en charge des jeux en tant que service (GaaS)](https://docs.xbox.com/fr/build/core-features/common/packaging/supporting-games-as-a-service.md)
