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

# XAppCaptureCancelUserRecord

> XAppCaptureCancelUserRecord

# XAppCaptureCancelUserRecord

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

## 語法

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

### 參數

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

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

### 傳回值

類型：HRESULT

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

## 備註

假設 localIdOfUserRecording 保有從 [XAppCaptureStartUserRecord](/zh-TW/reference/system/xappcapture/functions/xappcapturestartuserrecord) 傳回的本機 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 成員](/zh-TW/reference/system/xappcapture/xappcapture_members)


## Related topics

- [XAppCaptureCancelUserRecord](/ja-jp/reference/system/xappcapture/functions/xappcapturecanceluserrecord.md)
- [XAppCaptureStartUserRecord](/reference/system/xappcapture/functions/xappcapturestartuserrecord.md)
