EnumChildWindows API因Microsoft Edge浏览器而失败

编程入门 行业动态 更新时间:2024-10-20 05:33:38
本文介绍了EnumChildWindows API因Microsoft Edge浏览器而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我正在使用"EnumChildWindows"具有主窗口类名称的API-"ApplicationFrameWindow"或"Windows.UI.Core.CoreWindow"和子窗口类名 - " TabWindowClass"从Microsoft Edge浏览器捕获URL。这个方法工作正常,直到下面的Windows 10版本:

操作系统: - Windows 10,版本1607(OS Build 14393.1066) Microsoft边缘版本: - 38.14393.0.0

但是对于最新的Windows 10更新,"EnumChildWindows"和API失败,以下是Windows 10版本:

操作系统: - Windows 10,版本 - 1703(操作系统版本15063.138) Microsoft Edge版本: - 40.15063。 0.0

子窗口类名 - "Internet Explorer_Server"也失败了,在32位和64位Windows 10上面临同样的问题。所以任何人都帮我解决这个问题。

谢谢,

RJ

解决方案

嗯,使用这样的技术总是容易破损,所以你必须接受这是你想要做的任何事情的条件。 我怀疑Edge是否有适当的API可用于直接查找该信息。

您是否尝试过使用Spy ++查看类名是否已更改?

Hi All,

I am using "EnumChildWindows" API with main window class name- "ApplicationFrameWindow or Windows.UI.Core.CoreWindow" and child window class name- "TabWindowClass" to capture the URLs from Microsoft Edge browser. And this method is working fine until the below Windows 10 version:

OS:- Windows 10, version 1607 (OS Build 14393.1066) Microsoft Edge version:- 38.14393.0.0

But with latest Windows 10 updates, the "EnumChildWindows" API fails, below are the Windows 10 version:

OS:- Windows 10, Version - 1703 (OS Build 15063.138) Microsoft Edge version:- 40.15063.0.0

Child window class name- "Internet Explorer_Server" is also failed, facing the same issue on both 32 bit and 64 bit Windows 10. So anyone kindly help me to solve this issue.

Thanks,

RJ

解决方案

Well, using techniques like this are always prone to breakage, so you have to accept that as a condition of whatever you are trying to do. I doubt that Edge has a proper API you can use to find that information directly.

Have you tried using Spy++ to see if the class names have changed?

更多推荐

EnumChildWindows API因Microsoft Edge浏览器而失败

本文发布于:2023-11-12 12:17:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:浏览器   API   EnumChildWindows   Edge   Microsoft

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!