XAppCaptureTakeScreenshot
Takes a screenshot.Syntax
Parameters
requestingUser _In_Type: XUserHandle Handle representing the user requesting the screenshot. result _Out_
Type: XAppCaptureTakeScreenshotResult* Results of the screenshot returned.
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.
[!NOTE] This function isn’t supported on XBOX Game Streaming. See the Requirements section below to see which platforms support it.
[!NOTE] Older screenshots will be deleted when allotted space is filled to make room for new screenshots. Use PLS (Persistent Local Storage), connected storage (e.g. XGameSave or XGameSaveFiles), or a similar storage system in order to retain screenshots for a set period of time.
[!NOTE] This function isn’t supported on XBOX Game Streaming. See the Requirements section below to see which platforms support it.
[!NOTE] Older screenshots will be deleted when allotted space is filled to make room for new screenshots. Use PLS (Persistent Local Storage), connected storage (e.g. XGameSave or XGameSaveFiles), or a similar storage system in order to retain screenshots for a set period of time.
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
XAppCaptureReadScreenShotStream
XAppCaptureCloseScreenshotStream
XAppCaptureTakeScreenshotResult
