Releasing the reserved lights

The ReleaseLight() call releases the light target if it was previously reserved for this client. Multiple lights can be specified by using bitwise-or. If this client has not reserved any of the specified lights, this method does nothing. Any reserved light targets that are released and have no other suspended clients are reset to default state, which is either lights ON or lights OFF, depending on system inactivity time.

The following code snippet demonstrates how to release the reserved light targets:

iLight->ReleaseLight( CHWRMExtendedLight::EPrimaryDisplay | CHWRMExtendedLight::EPrimaryKeyboard );