views:

241

answers:

2

Is there a way to intercept window messages from another app other than a global message hook? Platform: Windows XP.

+1  A: 

You can set a hook procedure by calling SetWindowHookEx function. Specify the identifier of the thread with which the hook procedure is to be associated. MSDN

Lazin
If the thread belongs to another process, the hook must be implemented in a DLL, the same as a global hook does.
Remy Lebeau - TeamB
A: 

I have tried it a lot of times but couldn't do it.... Remy Lebeau as u said that a DLL should be used ... Could u tell me the code...????

anonymous