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

# XGameProtocolActivationCallbackXGameProtocol (deprecated)

> XGameProtocolActivationCallbackXGameProtocol (deprecated)

> [!NOTE]
>
> This API is now deprecated. Use [XGameActivationCallback](https://docs.xbox.com/reference/system/xgameactivation/functions/xgameactivationcallback.md) instead.

A callback an application defines for protocol activation events.

## Syntax

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

### Parameters

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

The context we pass to [XGameProtocolRegisterForActivation](https://docs.xbox.com/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md).

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

The URI used to invoke the protocol activation. Games may parse this to determine parameters passed to the game.

### Return value

Type: void

## Remarks

To register a callback for a game invite event, call
[XGameProtocolRegisterForActivation](https://docs.xbox.com/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md). To unregister a callback for a protocol
activation, call [XGameProtocolUnregisterForEvent](https://docs.xbox.com/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md).

## Requirements

**Header:** XGameProtocol.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XGameProtocol members](https://docs.xbox.com/reference/system/xgameprotocol/xgameprotocol_members.md)


## Related topics

- [XGameProtocol (deprecated)](https://docs.xbox.com/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameProtocolRegisterForActivation (deprecated)](https://docs.xbox.com/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameProtocolUnregisterForActivation (deprecated)](https://docs.xbox.com/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [Handling protocol activation to start a game by using Multiplayer Manager](https://docs.xbox.com/services/xbox-services/multiplayer/mpm/how-to/live-handle-protocol-activation.md)
- [XGameActivationRegisterForEvent](https://docs.xbox.com/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md)
