Skip to main content
Asynchronously releases all resources associated with the library.

Syntax

Parameters

async   
Type: XAsyncBlock*
The AsyncBlock for this operation. Keep the XAsyncBlock valid until the operation completes.

Return value

Type: HRESULT HRESULT return code for this API operation. Returns E_XBL_NOT_INITIALIZED if the library isn’t initialized. To get the final result of the cleanup operation, call XAsyncGetStatus(async, false) after the operation completes.

Remarks

Wait for any outstanding asynchronous calls that your game started to complete before you call this function. If there are pending background asynchronous tasks that XSAPI started, this function waits for them to complete. If you called XblMemSetFunctions, wait for this operation to complete before you shut down your app’s memory manager.

Requirements

Header: xbox_live_global_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

xbox_live_global_c
Last modified on October 29, 2026