有没有办法在计算机上观看所有COM活动? [英] Is there a way to watch all COM activity on a computer?

查看:138
本文介绍了有没有办法在计算机上观看所有COM活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图处理一个专门的硬件,它提供了它的接口作为COM对象,在Python中使用win32com。



但是,文档如何通过COM对象实际设置硬件是稀疏的(它需要大量的初始化),并完全面向使用一堆预先构建的Visual Studio的库,这是无法通过python访问。



也就是说,是否有任何方式来观察所有本地COM活动,所以我可以通过活动日志排序,尝试找出现有演示程序如何正确初始化硬件,并复制在我的python脚本中的行为?



理想情况下,在这里做一些事情在wireshark的静脉。



注意:我有很少的(阅读:基本上没有)使用COM的经验,因为我的重点大多是嵌入式硬件(和一个小的python dev在一边)。

解决方案

尝试 Deviare COM Spy Console


Com Spy控制台允许用户使用Component
对象模型的接口来
监视应用程序。你是
能够窥探哪些接口正在
创建,并查看应用程序
如何通过拦截
调用其成员函数来使用它们。



Spy在任何ActiveX / OLE32调用
监视这些COM
对象的所有成员。


您可以免费下载。 / p>

I'm trying to deal with a piece of specialized hardware, that presents it's interface as a COM object, using win32com in Python.

However, the documentation for how to actually set up the hardware through the COM object is sparse (it requires a significant amount of initialization), and entirely oriented at using a bunch of pre-built libraries for Visual Studio, which are not accessible through python.

That said, is there any way to watch all local COM activity, so I can sort through the activity logs to try and figure out how the existing demo programs properly initialize the hardware, and replicate the behavior in my python script?

Ideally, there would be something in the vein of wireshark for doing this.

Note: I have very little (read: basically no) experience using COM, as my focus is mostly embedded hardware (and a little python dev on the side). However, I'm stuck with this particular device.

解决方案

Try Deviare COM Spy Console.

Com Spy Console allows users to monitor applications using Component Object Model's interfaces. You are able to spy which interfaces are being created and see how the applications are using them by intercepting the calls to its member functions.

Spy on any ActiveX / OLE32 calls monitoring all members of these COM objects.

You can download it for free.

这篇关于有没有办法在计算机上观看所有COM活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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