IXboxFrontPanelControl::GetLightStates Method

Gets the current state of the front panel lights on an Xbox One X dev kit.

Syntax

public:
HRESULT GetLightStates(
         XBOX_FRONT_PANEL_LIGHTS *lights
)  

Parameters

lights
Type: XBOX_FRONT_PANEL_LIGHTS *

[out] Pointer to a value indicating the current state of the front panel lights. See the XBOX_FRONT_PANEL_LIGHTS topic for valid values.

Return value

Type: HRESULT 

Returns S_OK if successful, or an error code otherwise.

Requirements

Header: Declared in xboxfrontpanel.h.

Library: Use xboxfrontpanel.lib.

See also

IXboxFrontPanelControl::SetLightStates Method

XBOX_FRONT_PANEL_LIGHTS Enumeration