> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameActivationInfo

> XGameActivationInfo

# XGameActivationInfo

Contains the activation information passed to the activation callback.

## Syntax

```cpp theme={null}
struct XGameActivationInfo  
{  
    XGameActivationType type;  
    union  
    {  
        const char* protocolUri;  
        const char* file;  
        const char* inviteUri;  
    };  
};  
```

### Members

*type*\
Type: [XGameActivationType](/reference/system/xgameactivation/enums/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](/reference/system/xgameactivation/functions/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](/reference/system/xgameactivation/functions/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

* [File type activation](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/overviews/filetypeactivation)
* [Receiving invites](/services/xbox-services/multiplayer/invites/how-to/live-invites-receive)

## See also

[XGameActivation](/reference/system/xgameactivation/xgameactivation_members)\
[XGameActivationType](/reference/system/xgameactivation/enums/xgameactivationtype)\
[XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback)\
[XGameActivationAcceptPendingInvite](/reference/system/xgameactivation/functions/xgameactivationacceptpendinginvite)


## Related topics

- [XGameActivationType](/reference/system/xgameactivation/enums/xgameactivationtype.md)
- [XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback.md)
- [XGameActivation](/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameActivationAcceptPendingInvite](/reference/system/xgameactivation/functions/xgameactivationacceptpendinginvite.md)
- [XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md)
