> ## 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.

# XGameProtocolActivationCallbackXGameProtocol (déprécié)

> XGameProtocolActivationCallbackXGameProtocol (déprécié)

# XGameProtocolActivationCallbackXGameProtocol (déprécié)

<Info>Cette API est maintenant dépréciée. Utilisez plutôt [XGameActivationCallback](/fr-CA/reference/system/xgameactivation/functions/xgameactivationcallback).</Info>

Rappel défini par une application pour les événements d'activation de protocole.

## Syntaxe

```cpp theme={null}
typedef void CALLBACK XGameProtocolActivationCallback(
    _In_opt_ void* context,
    _In_ const char* protocolUri
    );
```

### Paramètres

*context*   \_In\_opt\_\
Type : void\*

Contexte que nous passons à [XGameProtocolRegisterForActivation](/fr-CA/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation).

*protocolUri*   \_In\_\
Type : char\*

URI utilisé pour déclencher l'activation de protocole. Les jeux peuvent l'analyser pour déterminer les paramètres passés au jeu.

### Valeur de retour

Type : void

## Remarques

Pour inscrire un rappel pour un événement d'invitation de jeu, appelez
[XGameProtocolRegisterForActivation](/fr-CA/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation). Pour désinscrire un rappel pour une activation
de protocole, appelez [XGameProtocolUnregisterForEvent](/fr-CA/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation).

## Configuration requise

**En-tête :** XGameProtocol.h

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[Membres de XGameProtocol](/fr-CA/reference/system/xgameprotocol/xgameprotocol_members)


## Related topics

- [XGameProtocolActivationCallbackXGameProtocol (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback.md)
- [XGameProtocolActivationCallbackXGameProtocol (en desuso)](/es/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback.md)
- [XGameProtocolRegisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameProtocolUnregisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameProtocolRegisterForActivation (en desuso)](/es/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
