Skip to main content

XGameActivationUnregisterForEvent

Unregisters a callback for activation events.

Syntax

Parameters

token   _In_
Type: XTaskQueueRegistrationToken
The token that XGameActivationRegisterForEvent returns. wait   _In_
Type: bool
Wait for pending event callbacks to complete.

Return value

Type: bool Returns false if wait is false and the unregister is pending. Returns true 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 activation events, call XGameActivationRegisterForEvent. The function uses a pointer to an XGameActivationCallback as an argument. For an example of calling this function, see the remarks section of the XGameActivationCallback topic.

Requirements

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

Conceptual documentation

See also

XGameActivation XGameActivationRegisterForEvent XGameActivationCallback
Last modified on August 20, 2026