Skip to main content

XUserChangeEventCallback

A callback that an application defines for a user change event.

Syntax

Parameters

context   _In_opt_
Type: void*
A context that the application defines and sends to XUserRegisterForChangeEvent. userLocalId   _In_
Type: XUserLocalId
A unique identifier for a user that exists for the game session. event   _In_
Type: XUserChangeEvent
An enumeration specifying the type of user change event.

Remarks

To obtain a sign out deferral, call XUserChangeEventCallback. Make sure to set XUserChangeEvent to XUserChangeEvent::SigningOut. This callback will only be called for users that were added to the title with a call to XUserAddAsync. The following example demonstrates how to handle user change events.
Type: void

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

See also

XUser
Last modified on August 20, 2026