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

# XAppCaptureDisableRecord

> XAppCaptureDisableRecord

# XAppCaptureDisableRecord

为玩家禁用视频录制。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

此函数不接受任何参数。

<a id="retvalSection" />

### 返回值

类型：HRESULT

成功时返回 `S_OK`。

<a id="remarksSection" />

## 备注

当禁用录制后，玩家将无法通过依次选择 **主页** > **拍摄屏幕截图 录制** 来录制视频、拍摄屏幕截图或广播游戏。

若要启用录制，请调用 [XAppCaptureEnableRecord](/reference/system/xappcapture/functions/xappcaptureenablerecord)。

录制功能默认处于启用状态。

**注意**：当 XBOM 远程视图处于活动状态时，此 API 调用将被忽略。一旦关闭 XBOM 远程视图，此 API 将生效并禁用录制功能。

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

<a id="requirementsSection" />

## 要求

**头文件：** XAppCapture.h

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 概念性文档

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

## 另请参阅

[XAppCaptureEnableRecord](/reference/system/xappcapture/functions/xappcaptureenablerecord)
