tags:

views:

74

answers:

3

Hi! I want to monitor all running applications, get events of application main window or child windows. How can I do it?

+1  A: 

You're looking for hooks. There's an article and entire reference with examples on MSDN about them. You probably want global WH_GETMESSAGE hook, since you're trying to capture all window messages.

PiotrLegnica
+2  A: 

Try Sysinternals Process Monitor

http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx

Lior Kogan
A: 

Thank you a lot! The links and the information will help me much! I am a Java developer and had no need to meddle in Windows's business. But now I have to...