GDI TextOut Hook
Posted on 2006-11-22
Okay - I've already asked this question twice before, but never got an adequate response, so let me try again...
I need a simple C++ example that captures TextOut messages being sent to a particular Windows application (more specifically, a Window). The notepad example that has been cited several times isn't exactly what I need since it intercepts and allows you to send the TextOut message yourself, but it never actually shows you what the incoming message is. This is what I need...
Intercept the mesages to see what they are (peek at them). I need something similar to what a keylogger would produce. I need to look at the messages (not send them). Assume an application is using TextOut to paint text as the user types into an edit control. I need to capture this text (key hooks won't work for this because I need to look at data that the application paints as well).
Please help (and post an example if you have one). Thanks!