简体   繁体   English

与 UAC 的屏幕键盘交互

[英]On screen keyboard interaction with UAC

I have created a winforms onscreen keyboard in C# with visual studio however this will not work when the UAC (User Account Control) window comes up so an administrator is unable to use their login details for specific troubleshooting areas.我已经使用 Visual Studio 在 C# 中创建了一个 winforms 屏幕键盘,但是当 UAC(用户帐户控制)窗口出现时,这将不起作用,因此管理员无法将其登录详细信息用于特定的故障排除区域。

I have tried using the following which work everywhere but none will work with the UAC window, these do not type anything;我曾尝试使用以下可以在任何地方使用但都不能与 UAC 窗口一起使用的方法,这些不输入任何内容;

SendKeys发送密钥
user32.dll keybd_event function user32.dll keybd_event 函数
InputSimulator输入模拟器

Any help much appreciated.非常感谢任何帮助。

The UAC prompt will not open on the current desktop, but in the brand-new Secure Desktop, it will suspend any currently open desktop. UAC 提示不会在当前桌面上打开,但在全新的安全桌面中,它会暂停任何当前打开的桌面。
It is intentional, because the program is not allowed to interact with this dialog box.这是故意的,因为程序不允许与此对话框交互。

There is one exception: "Trusted SYSTEM processes can run on a secure desktop", so you can refer to the following materials.有一个例外:“受信任的系统进程可以在安全桌面上运行”,因此您可以参考以下资料。
Ease of Access registry details 轻松访问注册表详细信息
UI Automation Security Overview UI 自动化安全概述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM