I am trying to modify another application's window (Google Talk) to
insert some UI of my own. I think the best method would be to install a
remote local hook in gtalk's thread that intercepts the paint message
and injects the custom UI. From the reading I've done, it is possible
to install a system hook with an unmanaged stub that passes execution
off to a managed C# delegate
(http://www.codeproject.com/csharp/GlobalSystemHook.asp), but some
types of hooks don't work, including WH_GETMESSAGE, which seems like
the hook I would use to intercept the paint message. So I need some
advice:
- Are the rules for remote local hooks different from those for system
hooks?
- Is WH_GETMESSAGE the right hook type?
- Is there in fact a way to install all types of system hooks with
managed code?
- Is the paint message the right thing to hook?
- Are hooks even the answer to this problem?
I am venturing into unknown territory and any assistance would be
greatly appreciated.