问题描述
我正在为Windows桌面操作系统编写一个应用程序,它通过GammaRamp更改屏幕亮度和颜色(使用< g class =" gr_ gr_17 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep"data-gr- id =" 17"
id =" 17"> SetDeviceGammaRamp < / g>函数)。我假设GammaRamp设置有两个级别 - 用户级别和管理员/系统级别。
当我启动需要管理员权限的文件(程序)时/>
和UAC提示窗口显示,GammaRamp用户级设置已被覆盖默认值255,255,255(出于安全原因)并且不再有效。
有没有办法从我的应用程序中检测此UAC提示窗口或更改GammaRamp(用户级设置不再使用)以便更正UAC提示后的GammaRamp?
我试图在WndProc中捕获有关GammaRamp更改或UAC提示的消息,但似乎没有发送。
I am coding an application for Windows Desktop OS which changes screen brightness and colors via GammaRamp (using <g class="gr_ gr_17 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep" data-gr-id="17" id="17">SetDeviceGammaRamp</g> function). I assume that there are two levels of the GammaRamp setting - user level and admin/system level.
When I start a file (program) which requires admin privileges
and UAC prompt windows shows up, the GammaRamp user-level setting has been overridden with the default 255,255,255 (for security reasons) and is not valid anymore.
Is there a way to detect this UAC prompt window or the change of the GammaRamp (that the user-level setting is not in use anymore) from my application in order to correct GammaRamp after the UAC prompt?
I have tried to capture a message in WndProc about GammaRamp change or UAC prompt but it seems nothing is sending.
这篇关于使用GammaRamp在Windows应用程序中更改屏幕亮度/颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!