简体   繁体   English

如何使用MMC自动化对象模型获取MMC管理单元节点的html dom对象

[英]How to get html dom object of a MMC snapin node using MMC automation object model

I am using automation object model for an existing mmc file and just trying to traverse all nodes of it and I am able to do so. 我正在为现有的mmc文件使用自动化对象模型,而只是尝试遍历该文件的所有节点,并且能够做到这一点。

My query is : how can I get the access of html dom object of a particular node . 我的查询是:如何获取特定节点的html dom对象。 A html page is present in result pane of a node, I want to get access of that so that I can perform some automation on that form. 节点的结果窗格中存在一个html页面,我想访问该页面,以便可以对该表单执行一些自动化操作。

Below is the link I am using for MMC automation object model. 以下是我用于MMC自动化对象模型的链接。 http://msdn.microsoft.com/en-us/library/aa815049(v=vs.85).aspx http://msdn.microsoft.com/zh-CN/library/aa815049(v=vs.85).aspx

I found that if OCX control is in result view of any node, then "view object -> control object property" returns the automation interface supplied by the control in the result view. 我发现,如果OCX控件位于任何节点的结果视图中,则“视图对象->控件对象属性”将返回该控件在结果视图中提供的自动化接口。

However, if result view is HTML view then how to get the automation interface of that result view. 但是,如果结果视图是HTML视图,则如何获取该结果视图的自动化界面。

I got my answer :) 我得到了我的答案:)

We can get the dom handle of a web browser control inside a windows application, after getting the dom, we can perform any action on that html page. 我们可以在Windows应用程序中获取Web浏览器控件的dom句柄,获取dom之后,我们可以对该html页面执行任何操作。 below is the KB article: 以下是知识库文章:

http://support.microsoft.com/kb/q249232 http://support.microsoft.com/kb/q249232

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

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