Skip to main content

XUserUnregisterForDeviceAssociationChanged

Unregisters a previously registered user device association change callback.

Syntax

Parameters

token   
Type: XTaskQueueRegistrationToken
The token that XUserRegisterForDeviceAssociationChanged returns when registering the callback. wait   
Type: bool
Specify true to wait until the callback unregisters; false to immediately return.

Return value

Type: bool Returns true if the callback successfully unregisters; false otherwise.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
To register a callback for user device association change events, call XUserRegisterForDeviceAssociationChanged. To register a callback that an application defines and invokes when the default audio endpoint is changes, call XUserRegisterForDefaultAudioEndpointUtf16Changed. To unregister a previously-registered default audio endpoint change callback, call XUserUnregisterForDefaultAudioEndpointUtf16Changed.

Requirements

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

Conceptual documentation

See also

XUser XUserRegisterForDeviceAssociationChanged XUserRegisterForDefaultAudioEndpointUtf16Changed XUserUnregisterForDefaultAudioEndpointUtf16Changed
Last modified on August 20, 2026