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

# XAppCaptureMetadataStopAllStates

> XAppCaptureMetadataStopAllStates

# XAppCaptureMetadataStopAllStates

停止当前处于活动状态的所有状态事件。

## 语法

```cpp theme={null}
HRESULT XAppCaptureMetadataStopAllStates(  
)  
```

### 参数

### 返回值

类型：HRESULT

函数结果。

## 备注

<Note>此函数不能在时间敏感线程上安全调用。有关详细信息，请参阅 [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)。</Note>

向应用捕获时间线添加一个停止状态将标记先前启动的事件的结束。若要标记单个状态事件的结束，请调用 [XAppCaptureMetaDataStopState](/reference/system/xappcapture/functions/xappcapturemetadatastopstate)。停止所有状态适用于例如比赛结束的情况，此时可假定所有先前状态均因比赛结束而结束。

## 要求

**头文件：** 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)\
[XAppCaptureMetaDataStopState](/reference/system/xappcapture/functions/xappcapturemetadatastopstate)


## Related topics

- [XAppCaptureMetadataStopState](/zh-CN/reference/system/xappcapture/functions/xappcapturemetadatastopstate.md)
- [XAppCapture](/zh-CN/reference/system/xappcapture/xappcapture_members.md)
- [面向 GDK 的 Unity C# API 包装器](/zh-CN/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [AppCaptureMetadataStartStringState](/zh-CN/reference/system/xappcapture/functions/xappcapturemetadatastartstringstate.md)
- [XAppCaptureMetadataStartInt32State](/zh-CN/reference/system/xappcapture/functions/xappcapturemetadatastartint32state.md)
