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

# XGameActivation (API の内容)

> XGameActivation

# XGameActivation

XGameActivation API のリファレンス資料。

> [!NOTE]
>
> **XGameActivation** API は、非推奨の [XGameProtocol](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/xgameprotocol_members.md) および [XGameInvite](https://docs.xbox.com/ja-jp/reference/system/xgameinvite/xgameinvite_members.md) API を置き換えます。新しいゲームでは、プロトコル アクティブ化、ファイル アクティブ化、およびゲーム招待の処理に **XGameActivation** を使用してください。移行に関するガイダンスについては、[Remarks](#remarks) を参照してください。

## Functions

| Function | Description |
| - | - |
| [XGameActivationCallback](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationcallback.md) | アプリケーションがアクティブ化イベントに対して定義するコールバック。 |
| [XGameActivationRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md) | アクティブ化イベントのコールバックを登録します。 |
| [XGameActivationUnregisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md) | アクティブ化イベントのコールバックの登録を解除します。 |
| [XGameActivationAcceptPendingInvite](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationacceptpendinginvite.md) | 保留中のゲーム招待を受諾します。 |

## Structures

| Structure | Description |
| - | - |
| [XGameActivationInfo](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/structs/xgameactivationinfo.md) | アクティブ化コールバックに渡されるアクティブ化情報を格納します。 |

## Enumerations

| Enumeration | Description |
| - | - |
| [XGameActivationType](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/enums/xgameactivationtype.md) | 発生したアクティブ化の種類を指定します。 |

## Remarks

**XGameActivation** API は、プロトコル アクティブ化、ファイル アクティブ化、およびゲーム招待の処理を含むすべての形式のゲーム アクティブ化に対して、統合されたコールバック メカニズムを提供します。これにより、[XGameProtocolRegisterForActivation](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md) および [XGameInviteRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md) に個別に登録する必要がなくなります。

### XGameProtocol および XGameInvite からの移行

| 非推奨の API | 置き換え |
| - | - |
| `XGameProtocolRegisterForActivation` | [XGameActivationRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md) |
| `XGameProtocolUnregisterForActivation` | [XGameActivationUnregisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md) |
| `XGameInviteRegisterForEvent` | [XGameActivationRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md) |
| `XGameInviteUnregisterForEvent` | [XGameActivationUnregisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md) |
| `XGameInviteRegisterForPendingEvent` | [XGameActivationRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md) |
| `XGameInviteUnregisterForPendingEvent` | [XGameActivationUnregisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationunregisterforevent.md) |
| `XGameInviteAcceptPendingInvite` | [XGameActivationAcceptPendingInvite](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/functions/xgameactivationacceptpendinginvite.md) |

## Conceptual documentation

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

## See also

[System API reference](https://docs.xbox.com/ja-jp/reference/system/gc-reference-system-toc.md)\
[Protocol activation](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/overviews/protocolactivation)\
[File type activation](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/overviews/filetypeactivation)


## Related topics

- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGame (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgame/xgame_members.md)
- [XGameSave (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamesave/xgamesave_members.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameEvent (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameevent/xgameevent_members.md)
