Retrieving the current light status

Context

The LightStatus() method retrieves the current light status. This method supports only the single target, as different targets can have different status. If multiple targets were specified, CHWRMLight::ELightStatusUnknown is returned.

The following code snippet demonstrates how to retrieve the current light status:

CHWRMLight::TLightStatus lightStatus = iLight->LightStatus( CHWRMLight::EPrimaryDisplay );