I am writing an application that needs to handle events fired by Office - things like 'before print' or 'new file'.
From various articles and examples I understand I should use the IConnectionPoint
interfaces.
I got the ConnectionPointContainer
for Word.Application using QueryInterface.
Now I want to run FindConnectionPoint
, but I have to give it the IID of the interface I am looking for, and I don't know where to find that!
I thought of running EnumConnectionPoints
, but that will give me all the connection points and I don't know how to identify which are the ones I need.
How do I know the IID?