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

# XAppCaptureCloseScreenshotStream

> XAppCaptureCloseScreenshotStream

# XAppCaptureCloseScreenshotStream

關閉螢幕擷取畫面串流。

## 語法

```cpp theme={null}
HRESULT XAppCaptureCloseScreenshotStream(  
         XAppCaptureScreenshotStreamHandle handle  
)  
```

### 參數

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

要關閉之螢幕擷取畫面串流的控制代碼。

### 傳回值

類型：HRESULT

函式結果。

## 備註

> [!NOTE]
>
> 在時間敏感執行緒上呼叫此函式並不安全。如需詳細資訊，請參閱[時間敏感執行緒](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)。

使用此函式來關閉由 [XAppCaptureOpenScreenShotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md) 開啟的螢幕擷取畫面串流。若未關閉已開啟的螢幕擷取畫面串流，將會導致記憶體流失。關閉串流所需的控制代碼，是由最初開啟該串流的 [XAppCaptureOpenScreenShotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md) 所傳回。

## 需求

**標頭：** XAppCapture.h

**程式庫：** xgameruntime.lib

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

## 概念文件

* [時間敏感執行緒](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 另請參閱

[GameDVR 概觀](https://docs.xbox.com/zh-TW/build/console-features/game-dvr/gamedvr-broadcast.md)\
[XAppCapture 成員](https://docs.xbox.com/zh-TW/reference/system/xappcapture/xappcapture_members.md)\
[XAppCaptureOpenScreenShotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md)\
[XAppCaptureReadScreenShotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturereadscreenshotstream.md)\
[XAppCaptureTakeScreenshot](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturetakescreenshot.md)


## Related topics

- [XAppCaptureReadScreenshotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturereadscreenshotstream.md)
- [XAppCaptureOpenScreenshotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream.md)
- [XAppCaptureTakeScreenshot](https://docs.xbox.com/zh-TW/reference/system/xappcapture/functions/xappcapturetakescreenshot.md)
- [XAppCaptureScreenshotStream](https://docs.xbox.com/zh-TW/reference/system/xappcapture/structs/xappcapturescreenshotstream.md)
- [XAppCapture (API 內容)](https://docs.xbox.com/zh-TW/reference/system/xappcapture/xappcapture_members.md)
