> ## 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

擷取的螢幕擷取畫面和描述性資訊。

## 語法

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

### 成員

*path*\
類型：char\[MAX\_PATH]

擷取之螢幕擷取畫面的路徑。

*fileSize*\
類型：size\_t

擷取之螢幕擷取畫面的大小 (位元組)。

*width*\
類型：uint32\_t

擷取之螢幕擷取畫面的寬度 (像素)。

*height*\
類型：uint32\_t

擷取之螢幕擷取畫面的高度 (像素)。

## 備註

此螢幕擷取畫面檔案代表以函式 [XAppCaptureTakeDiagnosticScreenshot](/zh-TW/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot) 擷取的診斷螢幕擷取畫面。診斷螢幕擷取畫面會儲存在與遊戲相同的磁碟分割中，因此可以使用 *path* 參數存取，而不需要開啟螢幕擷取畫面資料流。此結構是 [XAppCaptureDiagnosticScreenshotResult](/zh-TW/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult) 的成員。

## 需求

**標頭：** XAppCapture.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GameDVR 概觀](/zh-TW/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture 成員](/zh-TW/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureDiagnosticScreenshotResult](/zh-TW/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult)\
[XAppCaptureTakeDiagnosticScreenshot](/zh-TW/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot)


## Related topics

- [XAppCaptureScreenshotFile](/reference/system/xappcapture/structs/xappcapturescreenshotfile.md)
- [XAppCaptureDiagnosticScreenshotResult](/reference/system/xappcapture/structs/xappcapturediagnosticscreenshotresult.md)
- [XAppCaptureTakeDiagnosticScreenshot](/reference/system/xappcapture/functions/xappcapturetakediagnosticscreenshot.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
