Prereq Knowledge: C#, Office, Event Sinks, Marshalling
I haven't found a way to trap ALL office events in Microsoft's Interop
wrapper for Office Outlook. Specifically, there are events which don't
fire if I just add delegates to objects. For example, the folders
object does not reliably provide indicates of insertions, changes, and
deletions. And I only get events for mail objects which have had
explicit handlers set for them.
So I want to create an event sink in C# which gets ALL or huge bunches
of events without being tied to specific objects (this gets very heavy
in weight if I attach a handler to EVERY message in the folders!).
I've heard of Marshalling events to apply to a collection, but I don't
know how to do it and am unsure if it would work.
Any help would be greatly appreciated. |