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

# XblCleanupAsync

> XblCleanupAsync

# XblCleanupAsync

Récupère immédiatement toutes les ressources associées à la bibliothèque.

## Syntaxe

```cpp theme={null}
HRESULT XblCleanupAsync(  
         XAsyncBlock* async  
)  
```

### Paramètres

*async*   \
Type : XAsyncBlock\*

AsyncBlock pour cette opération.

### Valeur de retour

Type : HRESULT

Code de retour HRESULT pour cette opération d'API.

## Remarques

Si vous avez appelé XblMemSetFunctions(), appelez cette fonction avant d'arrêter le gestionnaire de mémoire de votre application. Il incombe au jeu d'attendre la fin de tous les appels Async en cours avant d'appeler XblCleanup. Si des tâches asynchrones en arrière-plan démarrées par XSAPI sont en attente, cette API attendra leur achèvement.

## Configuration requise

**En-tête :** xbox\_live\_global\_c.h

**Bibliothèque :** Microsoft.Xbox.Services.14x.GDK.C.lib

## Voir aussi

[xbox\_live\_global\_c](/fr/reference/live/xsapi-c/xbox_live_global_c/xbox_live_global_c_members)


## Related topics

- [Utilisation des API des services XBOX (XSAPI)](/fr/services/xbox-services/fundamentals/xbox-services-api/live-gs-xbl-apis.md)
- [HCCleanupAsync](/fr/reference/live/httpclient/httpclient/functions/hccleanupasync.md)
- [HCCleanup](/fr/reference/live/httpclient/httpclient/functions/hccleanup.md)
- [PartyXblManager::Cleanup](/fr/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_cleanup.md)
- [HCTraceCleanup](/fr/reference/live/httpclient/trace/functions/hctracecleanup.md)
