Skip to main content
Get the XblContextHandle associated with this context.

Syntax

Parameters

context   _In_
Type: XblContextHandle
The XBOX Live context handle. user   _Out_
Type: XblUserHandle*
Passes back the XBOX Live user handle. XSAPI will call XalUserDuplicateHandle before returning the handle, so it is the responsibility of the caller to later call XalUserCloseHandle.

Return value

Type: HRESULT HRESULT return code for this API operation.

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
Last modified on October 29, 2026