Connecting windows in COM mode

Is there a tool available that intercepts Windows COM runtime? I want to see all the instances that are created, view requests to their interfaces, method calls, etc.

Thanks!

+3
source share
4 answers

You can try Jonas Blunck COMTrace - I'm not sure if it works on Windows 7, but it's worth a try.

+4
source
+1
source

, , dll . , , , COM. , .

- :

+1

COM- In-proc - CoCreateInstance() CoGetClassObject() , . COM-. , ATL, , - , QueryInterface(), , .

This is not very successful, but is a direct result of the implementation of COM servers in proc. A developer can use Process Monitor to notice registry calls that match ClassId-> Dll mapping and extensive tracing inside a COM object to see what happens on. ATL has a bunch of useful materials (for example, the COM_INTERFACE_ENTRY_FUNC_BLIND macro) to enable tracing.

0
source

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


All Articles