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

# XblContextDuplicateHandle

> XblContextDuplicateHandle

# XblContextDuplicateHandle

Duplicates the XblContextHandle.

## Syntax

```cpp theme={null}
HRESULT XblContextDuplicateHandle(  
         XblContextHandle xboxLiveContextHandle,  
         XblContextHandle* duplicatedHandle  
)  
```

### Parameters

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

The XBOX Live context handle.

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

Passes back the duplicated handle.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Use this method rather than creating a new context with the same user if the XblContextHandle is needed by multiple threads.

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

- [XblMultiplayerSearchHandleDuplicateHandle](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersearchhandleduplicatehandle.md)
- [XblPresenceRecordDuplicateHandle](/reference/live/xsapi-c/presence_c/functions/xblpresencerecordduplicatehandle.md)
- [XblAchievementsResultDuplicateHandle](/reference/live/xsapi-c/achievements_c/functions/xblachievementsresultduplicatehandle.md)
- [XblHttpCallDuplicateHandle](/reference/live/xsapi-c/http_call_c/functions/xblhttpcallduplicatehandle.md)
- [XblMultiplayerSessionDuplicateHandle](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionduplicatehandle.md)
