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

# XFrontPanelGetLightStates

> XFrontPanelGetLightStates

# XFrontPanelGetLightStates

Obtém os estados das luzes do painel frontal.

<a id="syntaxSection" />

## Sintaxe

```cpp theme={null}
HRESULT XFrontPanelGetLightStates(  
         XFrontPanelLight* lights  
)  
```

<a id="parametersSection" />

### Parâmetros

*lights*   \_Out\_\
Tipo: [XFrontPanelLight](/pt-BR/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight)\*

Ponteiro para um valor que indica os estados atuais das luzes do painel frontal.

<a id="retvalSection" />

### Valor retornado

Tipo: HRESULT

Retorna `S_OK` se tiver êxito; caso contrário, retorna um código de erro.

<a id="remarksSection" />

## Comentários

O painel frontal do kit de desenvolvimento XBOX One X inclui cinco luzes que correspondem aos cinco botões programáveis.

<img src="https://mintcdn.com/microsoft-4404708b/-_0FrcE2bDxzGxv-/images/gdk/reference/front_panel_display_small.png?fit=max&auto=format&n=-_0FrcE2bDxzGxv-&q=85&s=8c81bf256714cec6526e83a4cbac5538" alt="Display do painel frontal do XBOX One X" width="704" height="362" data-path="images/gdk/reference/front_panel_display_small.png" />

O parâmetro *lights* aponta para um objeto [XFrontPanelLight](/pt-BR/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight) que indica o estado de cada luz.

Para definir os estados das luzes do painel frontal, use [XFrontPanelSetLightStates](/pt-BR/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates).

Para obter mais informações, confira [XBOX One X: Usando o display do painel frontal (tópico NDA)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel).

<a id="requirementsSection" />

## Requisitos

**Cabeçalho:** xfrontpaneldisplay.h

**Biblioteca:** xfrontpaneldisplay.lib

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

<a id="seealsoSection" />

## Confira também

[XFrontPanelDisplay](/pt-BR/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelLight](/pt-BR/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [XFrontPanelSetLightStates](/pt-BR/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates.md)
- [XFrontPanelDisplay](/pt-BR/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelGetButtonStates](/pt-BR/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetbuttonstates.md)
- [XFrontPanelButton](/pt-BR/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md)
