获取Windows 10中夜灯模式的状态 [英] Get status of night light mode in Windows 10

查看:194
本文介绍了获取Windows 10中夜灯模式的状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

I am using the desktop duplication api to grab the screen content and as it turns out, the new night light mode ('Nachtmodus' in German) is not applied in the grabbed screen content.

如何读取(如果可能,直接在C#中)夜间模式状态(启用,色偏量)?

How do I read (if possible directly in c#) the night mode status (enabled, color shift amount)?

如何告诉Windows使用桌面复制api给我变色的图像?

How can I tell Windows to give me the color shifted image using the desktop duplication api?

基本上,我想知道这些红色框中配置的状态:

Basically, I want to know the state of what is configured inside these red boxes:

背景:我正在研究无聊的实现,如果启用了夜灯模式,颜色偏移不会反映在屏幕周围的LED上,因此屏幕内容和屏幕周围"之间的颜色是关闭的.

Background: I am working on an ambilight implementation and if the night light mode is enabled, the color shift is not reflected in the LEDs around my screen and so the colors are off between screen content and 'around screen'.

推荐答案

您可以检查

GetDeviceGammaRamp

Win API中的功能.将输出与夜灯"的开"和关"进行比较,您应该对其进行检测.

Function from the Win API. Compare the output to Night Light ON and OFF and you should detect it.

或者您可以尝试监视此Reg键以进行更改

Or you can try to monitor this Reg key for changes

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\$$windows.data.bluelightreduction.settings\Current

这篇关于获取Windows 10中夜灯模式的状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆