XUserUnregisterForDeviceAssociationChanged
Unregisters a previously registered user device association change callback.
Syntax
bool XUserUnregisterForDeviceAssociationChanged(
XTaskQueueRegistrationToken token,
bool wait
)
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
Note
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
See also
XUserRegisterForDeviceAssociationChanged