Skip to main content

XAppCaptureCloseScreenshotStream

Closes a screenshot stream.

Syntax

Parameters

handle   _In_
Type: XAppCaptureScreenshotStreamHandle
Handle of the screenshot stream to close.

Return value

Type: HRESULT Function result.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Use this function to close the screenshot stream opened by XAppCaptureOpenScreenShotStream. Failure to close an opened screenshot stream will result in a memory leak. The handle required to close the stream is returned from the XAppCaptureOpenScreenShotStream that originally opened the stream.

Requirements

Header: XAppCapture.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

GameDVR Overview
XAppCapture Members
XAppCaptureOpenScreenShotStream
XAppCaptureReadScreenShotStream
XAppCaptureTakeScreenshot
Last modified on August 20, 2026