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

# XFrontPanelGetScreenDimensions

> XFrontPanelGetScreenDimensions

Gets the dimensions of the front panel display.

## Syntax

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

### Parameters

*height*   \_Out\_\
Type: uint32\_t\*

Pointer to a value indicating the height, in pixels, of the front panel display.

*width*   \_Out\_\
Type: uint32\_t\*

Pointer to a value indicating the width, in pixels, of the front panel display.

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an error code.

## Remarks

For current dev kits, the dimensions returned are always 256 pixels wide by 64 pixels high.

To determine whether this dev kit has a front panel display, use [XFrontPanelIsSupported](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md).

For more information, see [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).

## Requirements

**Header:** xfrontpaneldisplay.h

**Library:** xfrontpaneldisplay.lib

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

## See also

[XFrontPanelDisplay](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)


## Related topics

- [XFrontPanelPresentBuffer](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelpresentbuffer.md)
- [XFrontPanelIsSupported](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
- [XFrontPanelDisplay (API contents)](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetScreenPixelFormat](https://docs.xbox.com/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetscreenpixelformat.md)
- [View and manipulate the console's front panel (wdpanel.exe)](https://docs.xbox.com/tools/tools-console/console_commandlinetools/wdpanel.md)
