Skip to main content

XAppCaptureScreenshotStream

Represents a screenshot stream.

Syntax

Members

This structure contains no data members.

Remarks

Use this structure to collect screen captures. You can take a screenshot of the game by calling XAppCaptureTakeScreenshot. XAppCaptureTakeScreenshot returns one or more local IDs, which you can use to retrieve a screen capture by passing it in a call to XAppCaptureOpenScreenshotStream. You will get two local IDs if you take a screenshot of an HDR screenk: one for the SDR version, and one for HDR version. XAppCaptureOpenScreenshotStream returns a handle to the XAppCaptureScreenshotStream object. You can use this handle to read the content of the stream by passing it in a call to XAppCaptureReadScreenshotStream. When you’re done, you close the handle by calling XAppCaptureCloseScreenshotStream.

Example

The following code example demonstrates how to write the content of the screenshot stream to a local file.

Requirements

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

See also

XAppCapture Members
XAppCaptureTakeScreenshot
xappcapturescreenshotformatflag
Last modified on August 20, 2026