XAppCaptureReadScreenshotStream
Reads a screenshot stream.Syntax
Parameters
handle _In_Type: XAppCaptureScreenshotStreamHandle Screenshot stream handle returned by calling XAppCaptureOpenScreenshotStream. startPosition _In_
Type: uint64_t Position in the stream to start reading. bytesToRead _In_
Type: uint32_t Number of bytes in the stream to read. buffer _Out_writes_to_(bytesToRead,bytesWritten)
Type: uint8_t Buffer to contain the bytes read by XAppCaptureReadScreenshotStream. bytesWritten _Out_
Type: uint32_t* Number of bytes actually written to the buffer.
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.
Requirements
Header: XAppCapture.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesConceptual documentation
See also
GameDVR OverviewXAppCapture Members
XAppCaptureOpenScreenShotStream
XAppCaptureTakeScreenshot
XAppCaptureCloseScreenshotStream
