Skip to main content

XblContextGetUser

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.14x.GDK.C.lib

See also

xbox_live_context_c
Last modified on August 20, 2026