IXboxFrontPanelControl::SetLightStates Method

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

Syntax

public:
HRESULT SetLightStates(
         XBOX_FRONT_PANEL_LIGHTS lights
)  

Parameters

lights
Type: XBOX_FRONT_PANEL_LIGHTS 

[in] Value indicating the new state of the front panel lights. Pass one or more values from XBOX_FRONT_PANEL_LIGHTS or’d together to indicate the new light settings.

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::GetLightStates Method

XBOX_FRONT_PANEL_LIGHTS Enumeration