Skip to main content

XGameActivationInfo

Contains the activation information passed to the activation callback.

Syntax

Members

type
Type: XGameActivationType
The type of activation that occurred. Determines which field of the union contains valid data. protocolUri
Type: const char*
The protocol URI that activated the game. Valid when type is XGameActivationType::Protocol. file
Type: const char*
The file path that activated the game. Valid when type is XGameActivationType::File. inviteUri
Type: const char*
The invite URI for the game session. Valid when type is XGameActivationType::PendingGameInvite or XGameActivationType::AcceptedGameInvite.

Remarks

The XGameActivationInfo structure is passed to the XGameActivationCallback when an activation event occurs. The type field indicates the kind of activation, and the corresponding union field contains the relevant data. When the activation type is PendingGameInvite, the game should present UI to allow the user to accept or reject the invite. If the user accepts, call XGameActivationAcceptPendingInvite with the inviteUri. This triggers a subsequent callback with the AcceptedGameInvite type.

Requirements

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

Conceptual documentation

See also

XGameActivation
XGameActivationType
XGameActivationCallback
XGameActivationAcceptPendingInvite
Last modified on August 20, 2026