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

# XAppCaptureCancelUserRecord

> XAppCaptureCancelUserRecord

# XAppCaptureCancelUserRecord

停止透過 [XAppCaptureStartUserRecord](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturestartuserrecord.md) 啟動且由輸入的 ID 指定的進行中使用者錄製。使用者不會收到表示錄製已停止的快顯通知，且錄製內容不會儲存至磁碟。此 API 的 Windows 支援將在未來的版本中新增。

## 語法

```cpp theme={null}
HRESULT XAppCaptureCancelUserRecord(
    const char* localId
)
```

### 參數

*localId* \_In\_\
類型：const char\*

代表要求錄製之使用者的控制代碼。

### 傳回值

類型：HRESULT

函式結果。如需非 `S_OK` 的傳回值，請參閱 [XAppCapture 錯誤碼](https://docs.xbox.com/zh-TW/reference/system/xappcapture/xappcapture_errors.md)。

## 備註

假設 localIdOfUserRecording 保有從 [XAppCaptureStartUserRecord](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturestartuserrecord.md) 傳回的本機 ID。

```cpp theme={null}

if (FAILED_LOG(XAppCaptureCancelUserRecord(localIdOfUserRecording)))
{
    return;
}

appLog.AddLog("Recording cancelled: localId = %s\n", localIdOfUserRecording);

```

## 需求

**標頭：** XAppCapture.h

**程式庫：** xgameruntime.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XAppCapture 成員](https://docs.xbox.com/zh-TW/reference/system/xappcapture/xappcapture_members.md)


## Related topics

- [XAppCaptureStartUserRecord](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturestartuserrecord.md)
- [XAppCapture (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureStopUserRecord](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturestopuserrecord.md)
- [XAppCaptureUserRecordingResult](https://docs.xbox.com/zh-TW/reference/system/xappcapture/structs/xappcaptureuserrecordingresult.md)
- [XAppCaptureRecordTimespan](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturerecordtimespan.md)
