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

# XAppCaptureTakeScreenshotResult

> XAppCaptureTakeScreenshotResult

# XAppCaptureTakeScreenshotResult

代表擷取螢幕擷取畫面的結果。

## 語法

```cpp theme={null}
typedef struct XAppCaptureTakeScreenshotResult {  
    char localId[APPCAPTURE_MAX_LOCALID_LENGTH];  
    XAppCaptureScreenshotFormatFlag availableScreenshotFormats;  
} XAppCaptureTakeScreenshotResult  
```

### 成員

*localId*\
類型：char\[APPCAPTURE\_MAX\_LOCALID\_LENGTH]

螢幕擷取畫面結果的本機識別碼。

*availableScreenshotFormats*\
類型：[XAppCaptureScreenshotFormatFlag](/zh-TW/reference/system/xappcapture/enums/xappcapturescreenshotformatflag)

擷取螢幕擷取畫面後可用的影像格式。

## 備註

所產生之螢幕擷取畫面的相關資訊，以及是否同時提供 HDR 和 SDR 格式，或只提供 SDR 格式。呼叫 [XAppCaptureOpenScreenShotStream](/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream) 時，您將使用 *localID* 來存取正確的螢幕擷取畫面資料流。**XAppCaptureTakeScreenshotResult** 是 [XAppCaptureTakeScreenshot](/zh-TW/reference/system/xappcapture/structs/xappcapturetakescreenshotresult) 的輸出參數。

## 需求

**標頭：** 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)\
[XAppCaptureOpenScreenShotStream](/zh-TW/reference/system/xappcapture/functions/xappcaptureopenscreenshotstream)\
[XAppCaptureTakeScreenshot](/zh-TW/reference/system/xappcapture/structs/xappcapturetakescreenshotresult)


## Related topics

- [XAppCaptureTakeScreenshotResult](/reference/system/xappcapture/structs/xappcapturetakescreenshotresult.md)
- [XAppCaptureTakeScreenshot](/reference/system/xappcapture/functions/xappcapturetakescreenshot.md)
