查找窗口“用户访问控制设置” /&quot“ benutzerkontensteuerung”然后单击“否/nein”

发布于 2025-02-11 22:31:42 字数 515 浏览 0 评论 0原文

我必须启动一个应用程序,必须检查应用程序告诉我它可以使用正确的签名。此信息通过“用户访问控制”对话框显示。

因为系统在过程之后停止。开始我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文