IMessageFilter interface allows one to capture messages before they are
sent to a control or a form. Is there a way, perhaps by implementing
another interface, to capture all messages to an exe.
In other words, if I add a custom message filter implementing the
IMessageFilter interface to my notifyicon class, I can capture messages
when I display forms. If I add custom event handlers to the various
events in the SystemEvents class I can respond to system wide events
like session ending. I would like to be able to respond to any event my
exe might be sent, or "Filter" any message sent to it.
Thanks!