> ## 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 (非推奨)

> XGameProtocolActivationCallbackXGameProtocol (deprecated)

# XGameProtocolActivationCallbackXGameProtocol (deprecated)

> [!NOTE]
>
> この API は非推奨になりました。代わりに [XGameActivationCallback](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationcallback.md) を使用してください。

アプリケーションがプロトコル アクティブ化イベントに対して定義するコールバック。

## Syntax

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

### Parameters

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

[XGameProtocolRegisterForActivation](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md) に渡すコンテキスト。

*protocolUri*   \_In\_\
型: char\*

プロトコル アクティブ化の呼び出しに使用される URI。ゲームはこれを解析して、ゲームに渡されるパラメーターを判断できます。

### Return value

型: void

## Remarks

ゲーム招待イベントのコールバックを登録するには、[XGameProtocolRegisterForActivation](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md) を呼び出します。プロトコル アクティブ化のコールバックの登録を解除するには、[XGameProtocolUnregisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md) を呼び出します。

## Requirements

**ヘッダー:** XGameProtocol.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## See also

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


## Related topics

- [XGameProtocol (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameProtocolRegisterForActivation (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameProtocolUnregisterForActivation (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameInviteEventCallback (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameinvite/functions/xgameinviteeventcallback.md)
- [GameInputGuidButtonCallback (非推奨)](https://docs.xbox.com/ja-jp/reference/input/gameinput/deprecated/functions/gameinputguidebuttoncallback.md)
