How do I find out what the windows constants like WM_MOUSEMOVE and WM_MOUSEDOWN are if I'm using C#?
Posted
by Siracuse
on Stack Overflow
See other posts from Stack Overflow
or by Siracuse
Published on 2010-04-18T02:24:09Z
Indexed on
2010/04/18
2:33 UTC
Read the original article
Hit count: 402
I'm writing some code that uses some unmanaged calls into user32 functions such as SetWindowsHookEx, etc.
This requires me to use lots of constants that I'm not sure what their value is. For example, if I want to set the hook as a low-level mouse hook I need to know that WM_MOUSE_LL = 14.
Where can I look these up?
I need to know what WM_MOUSEMOVE, WM_MOUSEDOWN, and more are. When I'm dealing with interop code, what is the easiest way for me to find these? Is it possible for me to import them into C# so they will be defined?
© Stack Overflow or respective owner