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

ライブラリに関連付けられているすべてのリソースを直ちに再利用します。

## 構文

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

### パラメーター

*async*   \
型: XAsyncBlock\*

この操作の AsyncBlock。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻りコード。

## 解説

XblMemSetFunctions() を呼び出した場合は、アプリのメモリ マネージャーをシャットダウンする前にこれを呼び出してください。XblCleanup を呼び出す前に、未完了の非同期呼び出しが完了するのを待機するのはゲームの責任です。XSAPI によって開始された保留中のバックグラウンド非同期タスクがある場合、この API はそれらの完了を待機します。

## 要件

**ヘッダー:** xbox\_live\_global\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XBOX Services API (XSAPI) の使用方法](/ja-jp/services/xbox-services/fundamentals/xbox-services-api/live-gs-xbl-apis.md)
- [HCCleanupAsync](/ja-jp/reference/live/httpclient/httpclient/functions/hccleanupasync.md)
- [HCCleanup](/ja-jp/reference/live/httpclient/httpclient/functions/hccleanup.md)
- [PartyXblManager::Cleanup](/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_cleanup.md)
- [HCTraceCleanup](/ja-jp/reference/live/httpclient/trace/functions/hctracecleanup.md)
