"Chrome旧版窗口"使用RunAs启动chrome时 [英] "Chrome legacy Window" when launching chrome with RunAs

查看:149
本文介绍了"Chrome旧版窗口"使用RunAs启动chrome时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用MSAA(在Win7上)在chrome浏览器中获取地址栏,并将其替换为其他网址.当chrome(以登录用户身份)正常启动时,我可以遍历该进程所拥有的窗口类的UI树,从而使用IAccessible接口找到地址栏. 但是,如果我以其他用户身份启动chrome(通过在Windows中使用RunAs),则在浏览"RunAs"进程所拥有的类时会看到名称为"chrome legacy window"的窗口.窗口层次结构和其中的内容与我以登录用户的身份扫描正在运行的进程时所看到的完全不同.

I am trying to use MSAA (on Win7) to get the addressbar in chrome browser and replace it with a different url. When chrome is launched normally (as the loggedon user), I am able to find the addressbar using the IAccessible interface by traversing through the UI tree of the window classes owned by the process. However, if I launch chrome as a different user (by using RunAs in windows), I see window with name, "chrome legacy window" when going through the classes owned by the "RunAs" process. The window hierarchy and the content within is vastly different from what I see if I scan the process that is running as the logged on user.

尽管我可以看到(窗口类名)Chrome_WidgetWin_0&在这两个浏览器实例中,Chrome_WidgetWin_1都只有一个以当前用户身份运行的浏览器可以访问地址栏. 关于以其他用户身份启动chrome时会发生什么情况的任何想法?有什么解决方法,还是我应该考虑使用其他技术?

Although I can see (window classnames) Chrome_WidgetWin_0 & Chrome_WidgetWin_1 in both the browser instances, only the one running as the current user is giving access to the address bar. Any idea on what is happening when chrome is launched as a different user? Is there any workaround or should I be looking at a different technology?

推荐答案

我发现,如果在chrome浏览器(某些版本的chrome)中打开了PDF文件,则会显示您所引用的窗口.打开Chrome时,请确认正在使用的URL.

I have found that if a PDF file is open in the chrome viewer (in some versions of chrome) the window you referred to appears. Please confirm what URL is being used when you open chrome.

我还读到密码请求提示会导致打开同一窗口.仅当某些进程/用户启动了PDF窗口时,才会显示该窗口

I have also read that a password request prompt can cause the same window to open. The PDF window only appears if the window is launched by certain processes/users

这篇关于"Chrome旧版窗口"使用RunAs启动chrome时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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