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

# XAppBroadcastUnregisterIsAppBroadcastingChanged

> XAppBroadcastUnregisterIsAppBroadcastingChanged

# XAppBroadcastUnregisterIsAppBroadcastingChanged

アプリ ブロードキャスト ステータスの変更イベント ハンドラーを削除します。

## 構文

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

### パラメーター

*token*   \_In\_\
型: XTaskQueueRegistrationToken

[XAppBroadcastRegisterIsAppBroadcastingChanged](/reference/system/xappcapture/functions/xappbroadcastregisterisappbroadcastingchanged) によって作成されたイベント ハンドラー トークンです。 コールバックの登録解除に使用されます。

*wait*   \_In\_\
型: bool

コールバック関数がブロッキング関数を実行している場合に、登録解除関数に待機するように指示します。 これにより、この関数が返された後にコールバックが呼び出されないことが保証され、安全にシャットダウンできます。

### 戻り値

型: bool

## 解説

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

[XAppBroadcastRegisterIsAppBroadcastingChanged](/reference/system/xappcapture/functions/xappbroadcastregisterisappbroadcastingchanged) を呼び出すたびに、イベント ハンドラーが不要になった時点で **AppBroadcastUnregisterIsAppBroadcastingChanged** を呼び出してください。 この関数を呼び出さないと、メモリ リークが発生します。 この関数は、[XAppBroadcastRegisterIsAppBroadcastingChanged](/reference/system/xappcapture/functions/xappbroadcastregisterisappbroadcastingchanged) によって設定された [XAppBroadcastMonitorCallback](/reference/system/xappcapture/functions/xappbroadcastmonitorcallback) を登録解除します。

## 要件

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

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

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

## 概念ドキュメント

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 関連項目

[GameDVR の概要](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture メンバー](/reference/system/xappcapture/xappcapture_members)\
[XAppBroadcastRegisterIsAppBroadcastingChanged](/reference/system/xappcapture/functions/xappbroadcastregisterisappbroadcastingchanged)\
[XAppBroadcastMonitorCallback](/reference/system/xappcapture/functions/xappbroadcastmonitorcallback)


## Related topics

- [XAppBroadcastRegisterIsAppBroadcastingChanged](/ja-jp/reference/system/xappcapture/functions/xappbroadcastregisterisappbroadcastingchanged.md)
- [XTaskQueueRegistrationToken](/ja-jp/reference/system/xtaskqueue/structs/xtaskqueueregistrationtoken.md)
- [XAppCapture](/ja-jp/reference/system/xappcapture/xappcapture_members.md)
- [GDK 向け Unity C# API ラッパー](/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XAppBroadcastIsAppBroadcasting](/ja-jp/reference/system/xappcapture/functions/xappbroadcastisappbroadcasting.md)
