Trap WM_Messages

M

michelqa

Hi,

I want to trap (preprocess) win32 native messages in my C#
application.
Like Spy++ when spying windows messages.

1- Is this can be done without injecting a dll into the targetted
process?
2- Is there a Win32 way/message for spying messages from other
applications ?
3- Is this can be done with low level hook like the one seen in mouse/
keyboard global hook examples?

Looking for example or something to start with. I want to log ALL
win32 messages from a particular window in a different process. Thanks
 
M

michelqa

Yeah nothing really specific to c# sorry... but since i'm looking the
code in WinManagedApi there are some c# managed code to make things
easier... At least after your post it give me more confidence to
investigate more WM_GETMESSAGE. Afters hours of search in the
internet I saw WinManagedApi code (the marcro tool) which confirm the
use of WM_GETMESSAGE. For now i'm looking at the code but nothing can
really be easily extracted from this since everything seems to be
linked togethers. I will try to understand and extract what I need
but it will maybe takes weeks since my knowledge of Win32 techniques
is limited :(

I'm trying to do a kind of macro ...the recording part... I was able
to figure out how to do this for managed application but I realize how
complicate it will be for win32 app just to trap the messages sended
by a given application or handle :((((

Any help will be usefull
- The name or url of the appropriate newsgroup to get help on this
(with at least one post in the last month ;o))
- kind of Macro player/recorder code examples in c# (the part that
trap Win32 message)
- C# examples of usage of WM_GETMESSAGE hook

Thanks
 

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

Similar Threads

Log interop Win32 messages in a C# application - Repost 4
inject DLL 1
SPY in C# 1
Circle... 2
Control Event Monitoring 2
HELP - Global hooks 1
Interop 1
Keyboard Hooking and Global Event handling in WM5.0 1

Top