Skip to main content

XUserLocalId

Specifies a game session ID for a user.

Syntax

Members

value
Type: uint64_t
The game session ID for a user.

Remarks

The XUserLocalId uniquely identifies a user within a gaming session. If we duplicate XUserHandle, both handles maintain the same XUserLocalId. Once a gaming session ends, the same user can have a different XUserLocalIds in the next session. You cannot use these IDs to track users across gaming sessions. The IDs are valid per gaming session. A “null” XUserLocalId will be equal to the value of XUserNullUserLocalId. The following callback functions and function take an XUserLocalId structure or a pointer to one as an argument: The following example demonstrates how to use the XUserLocalId structure to retrieve the default audio endpoint for a user.

Requirements

Header: XUser.h Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

XUser XUserChangeEventCallback XUserDefaultAudioEndpointUtf16ChangedCallback XUserFindUserByLocalId XUserGetDefaultAudioEndpointUtf16 XUserGetLocalId
Last modified on August 20, 2026