Preprocess Win32 Messages through Windows Forms

Here is how to intercept all windows messages in your forms message queue

3 Responses to Preprocess Win32 Messages through Windows Forms

  1. Babu says:

    Nice Explanation, it would be nice if you can explain more

  2. Tahir Saleem says:

    I saw ur topic….it is very useful for me…but the problem is that its not processing sendMessage() from other application even it self..
    The example u gave its working its processing mouse down.

    When i tried to send a msg from other application or even the same application its not not working.. The handle i am getting is correct and valid because i checked it by changing destination window text.

    Your help is required in this matter.

  3. Alan says:

    Try using PostMessage instead of SendMessage.

Leave a reply to Alan Cancel reply