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

# XblContextCloseHandle

> XblContextCloseHandle

# XblContextCloseHandle

Closes the XblContextHandle.

## Syntax

```cpp theme={null}
void XblContextCloseHandle(  
         XblContextHandle xboxLiveContextHandle  
)  
```

### Parameters

*xboxLiveContextHandle*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

The XBOX Live context handle.

### Return value

Type: void

## Remarks

When all outstanding handles have been closed, XblContextCloseHandle() will free the memory associated with the handle.

## Requirements

**Header:** xbox\_live\_context\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[xbox\_live\_context\_c](/reference/live/xsapi-c/xbox_live_context_c/xbox_live_context_c_members)


## Related topics

- [XStoreCloseContextHandle](/reference/system/xstore/functions/xstoreclosecontexthandle.md)
- [XblMultiplayerSearchHandleCloseHandle](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandleclosehandle.md)
- [XblAchievementsResultCloseHandle](/reference/live/xsapi-c/achievements_c/functions/xblachievementsresultclosehandle.md)
- [XblPresenceRecordCloseHandle](/reference/live/xsapi-c/presence_c/functions/xblpresencerecordclosehandle.md)
- [XblHttpCallCloseHandle](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallclosehandle.md)
