Post by Günter Prossliner
Does anybody know how to hook Method called on an instance
of a COM interface?
I have not used it but this may be of interest:
It seems to use a library which you can call from your own code as
well as providing a UI for COM tracing. (I think there is a free
version and a commercial version. Haven't looked into the differences;
I only just stumbled on it while looking for something else.)
There's also this, which looks good as a tracer for COM and Win32:
(I haven't used that either; only just discovered that too. Looks
good, at least if you don't need to trace 64-bit processes.)
There's also an old "ComSpy" (a name used by several other things,
some not involving COM, so watch out when you Google :) ) tool with
source, though the most common site for it seems to no longer exist:
I think I have a copy of it somewhere although I have to admit I could
never get it to work. :)
I'm sure there was something else, called "Universal Delegate" or
something similar, but I'm having trouble finding it now. (Perhaps it
was part of the technique ComSpy used rather than a separate tool?)
I'm sure there was at least one other old COM tracing tool (which I
also tried and could never get to work).
Hopefully those two newer tools work more easily than the older ones
(which I'm sure worked in the past but weren't kept up-to-date).