Windows.Devices.Lights.dll 是 Windows Runtime(WinRT)中 Windows.Devices.Lights 命名空间的系统级实现模块,通常位于 %SystemRoot%\System32。它并非普通桌面 DLL,而是通过 WinRT 激活与 COM 组件模型对外暴露 Lamp、LampArray、LampArrayEffect、LampInfo、LampPurposes 等类型,将 HID、USB、ACPI、蓝牙及驱动栈上报的灯光能力封装为统一可编程接口。
LampArray.GetDeviceSelector 或 Windows.Devices.Enumeration 发现支持 LampArray 的键盘、鼠标、机箱灯带、主板、风扇、笔记本灯效等,读取 LampCount、BoundingBox、LampArrayKind、IsConnected、SupportsVirtualKey 等元数据。Lamp 面向单指示灯,支持亮度、颜色与开关;LampArray 面向多灯珠阵列,提供 SetColor、SetColors、SetSingleColor、SetBrightness、SetEffect、RequestLampArray 等方法,可按索引或位置写入 RGB/HSV 数据。LampArrayEffect、LampArrayEffectKind、LampArrayEffectPlaylist 等支持呼吸、闪烁、渐变、波浪、音频可视化等效果;通过时间戳与帧同步,实现多设备灯效一致。ConnectionStatusChanged、AvailabilityChanged 等事件,便于热插拔和电源状态变化时更新应用状态。0x8007007E 等错误。sfc /scannow、DISM /Online /Cleanup-Image /RestoreHealth,安装 Windows 更新与厂商驱动;不要从第三方站点单独下载替换 System32 目录中的 DLL。