Skip to main content

XblContextGetXboxUserId

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

See also

xbox_live_context_c
Last modified on August 20, 2026