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

# XGameActivationUnregisterForEvent

> XGameActivationUnregisterForEvent

# XGameActivationUnregisterForEvent

アクティブ化イベントのコールバックの登録を解除します。

## Syntax

```cpp theme={null}
bool XGameActivationUnregisterForEvent(  
         XTaskQueueRegistrationToken token,  
         bool wait  
)  
```

### Parameters

*token*   \_In\_\
型: [XTaskQueueRegistrationToken](/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken)

[XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent) が返すトークン。

*wait*   \_In\_\
型: bool

保留中のイベント コールバックの完了を待機します。

### Return value

型: bool

*wait* が false で、登録解除が保留中の場合は false を返します。それ以外の場合は true を返します。

## Remarks

<Note>この関数は、時間依存スレッドから呼び出しても安全ではありません。詳細については、[Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads) を参照してください。</Note>

アクティブ化イベントのコールバックを登録するには、[XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent) を呼び出します。この関数は、[XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback) へのポインターを引数として使用します。

この関数の呼び出し例については、[XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback#remarks) トピックの「Remarks」セクションを参照してください。

## Requirements

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

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

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

## Conceptual documentation

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

## See also

[XGameActivation](/reference/system/xgameactivation/xgameactivation_members)

[XGameActivationRegisterForEvent](/reference/system/xgameactivation/functions/xgameactivationregisterforevent)

[XGameActivationCallback](/reference/system/xgameactivation/functions/xgameactivationcallback)


## Related topics

- [XGameActivation](/ja-jp/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameActivationRegisterForEvent](/ja-jp/reference/system/xgameactivation/functions/xgameactivationregisterforevent.md)
- [XGameActivationCallback](/ja-jp/reference/system/xgameactivation/functions/xgameactivationcallback.md)
- [XGameProtocolUnregisterForActivation (deprecated)](/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolunregisterforactivation.md)
- [XGameInviteUnregisterForEvent (deprecated)](/ja-jp/reference/system/xgameinvite/functions/xgameinviteunregisterforevent.md)
