Skip to main content
Get the XBOX user ID of the user associated with the context.

Syntax

Parameters

context   _In_
Type: XblContextHandle
The XBOX Live context handle. xboxUserId   _Out_
Type: uint64_t*
Passes back the XBOX user ID.

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