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

# XblContextCloseHandle

> XblContextCloseHandle

Closes the XblContextHandle.

## Syntax

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

### Parameters

*xboxLiveContextHandle*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

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.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[xbox\_live\_context\_c](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_c/xbox_live_context_c_members.md)


## Related topics

- [XblContextCreateHandle](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_c/functions/xblcontextcreatehandle.md)
- [xbox_live_context_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_c/xbox_live_context_c_members.md)
- [How to use XBOX services APIs](https://docs.xbox.com/services/xbox-services/fundamentals/xbox-services-api/live-gs-xbl-apis.md)
- [XStoreCloseContextHandle](https://docs.xbox.com/reference/system/xstore/functions/xstoreclosecontexthandle.md)
- [XblMultiplayerSearchHandleCloseHandle](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandleclosehandle.md)
