查找窗口“用户访问控制设置” /&quot“ benutzerkontensteuerung”然后单击“否/nein”
我必须启动一个应用程序,必须检查应用程序告诉我它可以使用正确的签名。此信息通过“用户访问控制”对话框显示。
因为系统在过程之后停止。开始我在 backending worker_dowork 中做这项工作。应用程序启动正常,显示“用户访问控制”对话框,并找到了我以下代码。
我的问题是找到“用户访问控制”对话框的窗口。
该代码
IntPtr hWnd = FindWindow(IntPtr.Zero, "Benutzerkontensteuerung");
找不到窗口。而且
int HWND = 0;
EnumWindows(new EnumWindowCallBack(EnumWindowCallBack), HWND);
还没有找到“ Benutzerkontensteuerung”的窗口。
是否有机会找到此窗口,找到用户的消息并将Enter发送给它?
I must start an application and I must check that the application tells me it works with the correct signature.This information is shown via the "User Access Control" Dialog.
Because the system stops after process.Start I do this job in backgroundWorker_DoWork. The application starts fine, shows the "User Access Control" Dialog and my following code was found.
My problem is to find the window of "User Access Control" Dialog.
The code
IntPtr hWnd = FindWindow(IntPtr.Zero, "Benutzerkontensteuerung");
finds no window. And
int HWND = 0;
EnumWindows(new EnumWindowCallBack(EnumWindowCallBack), HWND);
also finds no window with "Benutzerkontensteuerung".
Is there a chance to find this window, the find the message for the user and to send an Enter to it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论