XAppCaptureTakeDiagnosticScreenshot
Takes a diagnostic screenshot from your app.Syntax
Parameters
gamescreenOnly _In_Type: bool Determines whether or not only the gamescreen will be captured. If set to false it is possible that some UI like an onscreen keyboard could be captured in addition to the game screen. captureFlags _In_
Type: XAppCaptureScreenshotFormatFlag Determines whether the capture will be an SDR or HDR capture. filenamePrefix _In_opt_
Type: char* Desired prefix for the file name, is optional, will be appended to the front of the diagnostic file name. result _Out_
Type: XAppCaptureDiagnosticScreenshotResult* The resulting captured screenshot.
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
XAppCaptureDiagnosticScreenshotResult
XAppCaptureScreenshotFormatFlag
XAppCaptureDiagnosticScreenshotResult
XAppCaptureScreenshotFile
