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

# XFrontPanelGetScreenDimensions

> XFrontPanelGetScreenDimensions

# XFrontPanelGetScreenDimensions

获取正面板显示屏的尺寸。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
HRESULT XFrontPanelGetScreenDimensions(  
         uint32_t* height,  
         uint32_t* width  
)  
```

<a id="parametersSection" />

### 参数

*height*   \_Out\_\
类型：uint32\_t\*

指向一个值的指针，该值指示正面板显示屏的高度（以像素为单位）。

*width*   \_Out\_\
类型：uint32\_t\*

指向一个值的指针，该值指示正面板显示屏的宽度（以像素为单位）。

<a id="retvalSection" />

### 返回值

类型：HRESULT

如果成功则返回 `S_OK`；否则返回错误代码。

<a id="remarksSection" />

## 注解

对于当前的开发套件，返回的尺寸始终为 256 像素宽 x 64 像素高。

若要确定此开发套件是否具有正面板显示屏，请使用 [XFrontPanelIsSupported](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported)。

有关详细信息，请参阅 [XBOX One X: Using the front panel display (NDA topic)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel)。

<a id="requirementsSection" />

## 要求

**头文件：** xfrontpaneldisplay.h

**库：** xfrontpaneldisplay.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelIsSupported](/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
- [XFrontPanelPresentBuffer](/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelDisplay](/zh-CN/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetScreenPixelFormat](/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat.md)
- [Front Panel URIs](/zh-CN/reference/deviceportal/frontpanel/atoc-rest-frontpanel.md)
