How to find the interfaces of an ActiveX control?

Given an instance of an ActiveX control, how can I list its interfaces? (I would like to get the names of the interfaces).

+5
source share
3 answers

Like so many others, the only way is QueryInterface for all possible interfaces. And this is exactly what the Microsoft OleView tool does for you.

+4
source

, COM. COM , , UUID, . UUID, ! , COM- . , , UUID , .

ActiveX ( !) IDispatch. , , GetTypeInfo(). ( ), .

, COM .

+2

In no case. The idea of ​​COM interfaces is that you request an object - "please give me the XYZ interface if you support it), and the object decides how to respond - provide a link to yourself or set the interface of some internal object, etc. .t knows which interfaces the object "supports" without asking for the object as described above. This was a constructive decision by COM designers.

+1
source

All Articles