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

# XGameProtocolUnregisterForActivation (deprecated)

> XGameProtocolUnregisterForActivation (deprecated)

# XGameProtocolUnregisterForActivation (deprecated)

<Info>この API は非推奨になりました。代わりに [XGameActivationUnregisterForEvent](/reference/system/xgameactivation/functions/xgameactivationunregisterforevent) を使用してください。</Info>

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

## Syntax

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

### Parameters

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

[XGameInviteRegisterForEvent](/reference/system/xgameinvite/functions/xgameinviteregisterforevent) が返すトークン。

*wait*   \_In\_\
型: bool

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

### Return value

型: bool

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

## Remarks

<Note>この関数は、時間依存スレッドから呼び出しても安全ではありません。詳細については、</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](/reference/system/xgameprotocol/xgameprotocol_members)


## Related topics

- [XGameProtocolActivationCallbackXGameProtocol (deprecated)](/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolactivationcallback.md)
- [XGameProtocolRegisterForActivation (deprecated)](/ja-jp/reference/system/xgameprotocol/functions/xgameprotocolregisterforactivation.md)
- [XGameProtocol (deprecated)](/ja-jp/reference/system/xgameprotocol/xgameprotocol_members.md)
- [XGameActivation](/ja-jp/reference/system/xgameactivation/xgameactivation_members.md)
- [XGameInviteUnregisterForEvent (deprecated)](/ja-jp/reference/system/xgameinvite/functions/xgameinviteunregisterforevent.md)
