Freigeben über


XUserDeviceAssociationChangedCallback

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

Syntax

void XUserDeviceAssociationChangedCallback(  
         void* context,  
         const XUserDeviceAssociationChange* change  
)  

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