Is there a way to monitor all the work of COM on a computer?

I am trying to figure out a piece of specialized equipment that represents it as a COM object using win32com in Python.

However, the documentation on how to actually configure hardware through a COM object is sparse (requires significant initialization) and is fully focused on using heaps of pre-built libraries for Visual Studio that are not accessible through python.

However, is there a way to view all local COM activity, so I can sort the activity logs to try to figure out how the existing demos correctly initialize the hardware, and replicate the behavior in my python script

Ideally, in the spirit of a wirehark, there would be something for this.

Note. I have very little (read: basically no) experience using COM, since the main focus is mainly on the embedded hardware (and a small python developer on the side). However, I am stuck in this particular device.

+4
source share
2 answers

Try Deviare COM Spy Console .

The Com Spy console allows users to monitor applications using the Object Model Interfaces component. You are able to keep track of which interfaces to create and see how applications use them, intercepting calls its member functions.

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

You can download for free.

+3
source

Another nice trick is to use Process Monitor to view registry activity related to COM / COM +. Mostly access to keys such as HKLM \ Software \ Classes \ CLSID {SOME-GUID}.

This has helped me many times to find problems with components that are incorrectly registered in the system.

0
source

Source: https://habr.com/ru/post/1313151/


All Articles