> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XAppCaptureScreenshotFile

> XAppCaptureScreenshotFile

# XAppCaptureScreenshotFile

Captured screenshot and descriptive information.

## Syntax

```cpp theme={null}
typedef struct XAppCaptureScreenshotFile {  
    char path[MAX_PATH];  
    size_t fileSize;  
    uint32_t width;  
    uint32_t height;  
} XAppCaptureScreenshotFile  
```

### Members

*path*\
Type: char\[MAX\_PATH]

Path to the captured screenshot.

*fileSize*\
Type: size\_t

Size of the captured screenshot in bytes.

*width*\
Type: uint32\_t

Width of the captured screenshot in pixels.

*height*\
Type: uint32\_t

Height of the captured screenshot in pixels.

## Remarks

This screenshot file represents a diagnostic screenshot taken with the function [XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot). The diagnostic screenshot is saved in the same partition as the game so it can be accessed using the *path* parameter instead of opening a screenshot stream. This structure is a member of [XAppCaptureDiagnosticScreenshotResult](/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult).

## Requirements

**Header:** XAppCapture.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[GameDVR Overview](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture Members](/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureDiagnosticScreenshotResult](/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult)\
[XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot)


## Related topics

- [XAppCaptureDiagnosticScreenshotResult](/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult.md)
- [XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureTakeScreenshot](/reference/system/xappcapture/functions/xappcapturetakescreenshot.md)
- [XAppCaptureScreenshotStream](/reference/system/xappcapture/structs/xappcapturescreenshotstream.md)
