Intercepting Window Messages

  • Thread starter Thread starter Alex Pierson
  • Start date Start date
A

Alex Pierson

I have searched and searched and cannot find any code in VB.net that
would allow me to intercept messages from an external application
(window). I have implemented a global keyboard hook successfully but I
cannot figure out how to hook into windows (external application)
messages.

Any pointers (or code)? (Even if it involves the creation of a
non-VB.net dll).

Thanks.
 
Hey Mr MVP, I am only across the border from you now :)) Have a software
contract (two actually) in Germany/Poland.

The message you typed is listed under the constants section of the old VB 6
API Viewer, but there isn't really that much about it in the Platform SDK
Feb. 2003 documentation, except to see the 'GetMsgProc Function' for more
information.

Your message should also be declared as:

Private Const WH_GETMESSAGE As Integer = 3 'or
Public Const WH_GETMESSAGE As Integer = 3
 
Yes. That is what I'm looking for, but I cannot figure out to use
WH_GETMESSAGE to capture messages from a known hwnd. Can anyone help
me with this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top