> ## 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 (deprecated)

> XGameProtocolActivationCallbackXGameProtocol (deprecated)

# XGameProtocolActivationCallbackXGameProtocol (deprecated)

<Info>This API is now deprecated. Use [XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback) instead.</Info>

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](/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation).

*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](/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation). To unregister a callback for a protocol
activation, call [XGameProtocolUnregisterForEvent](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation).

## Requirements

**Header:** XGameProtocol.h

**Library:** xgameruntime.lib

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

## See also

[XGameProtocol members](/reference/system/xgameprotocol/xgameprotocol_members)


## Related topics

- [XGameProtocol (deprecated)](/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameProtocolRegisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameProtocolUnregisterForActivation (deprecated)](/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md)
- [XGameActivation](/reference/system/xgameactivation/xgameactivation_members.md)
