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

# XGameProtocolUnregisterForActivation (非推奨)

> XGameProtocolUnregisterForActivation (deprecated)

# XGameProtocolUnregisterForActivation (deprecated)

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

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

## Syntax

```cpp theme={null}
STDAPI_(bool) XGameProtocolUnregisterForActivation(
    _In_ XTaskQueueRegistrationToken token,
    _In_ bool wait
    ) noexcept;
```

### Parameters

*token*   \_In\_\
型: [XTaskQueueRegistrationToken](https://docs.xbox.com/ja-jp/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)

[XGameInviteRegisterForEvent](https://docs.xbox.com/ja-jp/reference/system/xgameinvite/functions/xgameinviteregisterforevent.md) が返すトークン。

*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) を参照してください。

## 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)
- [XGameProtocolActivationCallbackXGameProtocol (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback.md)
- [XGameProtocolRegisterForActivation (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameInviteUnregisterForEvent (非推奨)](https://docs.xbox.com/ja-jp/reference/system/xgameinvite/functions/xgameinviteunregisterforevent.md)
- [XGameActivation (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameactivation/xgameactivation_members.md)
