Skip to main content

XGameActivationCallback

A callback an application defines for activation events.

Syntax

Parameters

context   _In_opt_
Type: void*
The context passed to XGameActivationRegisterForEvent. activationInfo   _In_
Type: XGameActivationInfo*
A pointer to an XGameActivationInfo structure that contains the activation information. The type field indicates the kind of activation, and the corresponding union field contains the relevant data.

Return value

Type: void

Remarks

To register a callback for activation events, call XGameActivationRegisterForEvent. The function uses a pointer to an XGameActivationCallback as an argument. To unregister a callback for activation events, call XGameActivationUnregisterForEvent. The callback receives an XGameActivationInfo structure. Check the type field to determine the kind of activation and handle each type appropriately.
This callback replaces both XGameProtocolActivationCallback and XGameInviteEventCallback. See XGameActivation for migration guidance.
The following code sample registers for an activation callback and handles all activation types.

Requirements

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

Conceptual documentation

See also

XGameActivation XGameActivationRegisterForEvent XGameActivationUnregisterForEvent XGameActivationInfo XGameActivationType
Last modified on August 20, 2026