Skip to main content

XUserDeviceAssociationChangedCallback

A callback that invokes when the user-device association changes.

Syntax

Parameters

context   _In_opt_
Type: void*
The context the application defines and sends to XUserRegisterForDeviceAssociationChanged during callback registration. change   _In_
Type: XUserDeviceAssociationChange*
A structure that contains the old and new device associations.

Return value

Type: void

Remarks

To register a callback for user device association change events, call XUserRegisterForDeviceAssociationChanged. The function takes a pointer to an XUserDeviceAssociationChangedCallback function as an argument. The function returns the pointer to the callback function.

Requirements

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

See also

XUser XUserRegisterForDeviceAssociationChanged
Last modified on August 20, 2026