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

# 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](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md). 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](https://docs.xbox.com/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult.md).

## Requirements

**Header:** XAppCapture.h

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

## See also

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


## Related topics

- [XAppCaptureDiagnosticScreenshotResult](https://docs.xbox.com/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult.md)
- [XAppCaptureTakeDiagnosticScreenshot](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md)
- [XAppCapture (API contents)](https://docs.xbox.com/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureTakeScreenshot](https://docs.xbox.com/reference/system/xappcapture/functions/xappcapturetakescreenshot.md)
- [XAppCaptureScreenshotStream](https://docs.xbox.com/reference/system/xappcapture/structs/xappcapturescreenshotstream.md)
