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

# XAppCaptureCloseLocalStream

> XAppCaptureCloseLocalStream

# XAppCaptureCloseLocalStream

關閉並刪除指定的錄製串流。

## 語法

```cpp theme={null}
HRESULT XAppCaptureCloseLocalStream(
  XAppCaptureLocalStreamHandle handle
)
```

### 參數

*handle* \_In\_\
類型：XAppCaptureLocalStreamHandle

要關閉之錄製串流的控制代碼。

### 傳回值

類型：HRESULT

函式結果。

## 備註

任何時候都只允許兩個錄製，一旦建立兩個錄製之後，任何進一步的錄製都會傳回失敗，直到對其中一個串流呼叫 **XAppCaptureCloseLocalStream** 為止。

## 需求

**標頭：** XAppCapture.h

**程式庫：** xgameruntime.lib

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

## 另請參閱

[XAppCapture 成員](/zh-TW/reference/system/xappcapture/xappcapture_members)


## Related topics

- [XAppCaptureCloseLocalStream](/reference/system/xappcapture/functions/xappcapturecloselocalstream.md)
- [XAppCaptureLocalResult](/reference/system/xappcapture/structs/xappcapturelocalresult.md)
