
Intercepting messages arriving for another running application
Quote:
> I want to write an application which takes commands from messages arriving
> in
> another running application (a chat box). So, I need to be able to monitor
> the messages arriving in
> that chat application (on that specific port) from my own app. Any idea
> where I begin with this?
> Any help much appreciated...
> Dave
You could start with the Spy++ utility to find out if the messages are displayed
in an edit control. If so you are in luck. You can read an edit control in any
process with SendMessage(hwnd, WM_GETTEXT...). To get the hwnd you can hunt
around with FindWindow and EnumChildWindows.
--
Scott McPhillips [VC++ MVP]