469,898 Members | 1,452 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Creating a mousehook outside the calling thread

Greetings fellow programmers!

Could someone explain to me HOW to call a mousehook OUTSIDE the calling thread (or program).

Microsoft says following:
HHOOK SetWindowsHookEx(
int idHook,
DWORD dwThreadId

Where dwThreadId is the ID of the CURRENT application (thread).
However, i know it should be possible to monitor messages to ANY active window, OUTSIDE the current application.

I haven't quite yet found out though how to achieve this in C#.
Can anyone give me some sound advice? Thanks!
Oct 15 '06 #1
0 1089

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by AccessWhiz | last post: by
1 post views Thread by Doug | last post: by
15 posts views Thread by David Thielen | last post: by
3 posts views Thread by l.green | last post: by
13 posts views Thread by LordHog | last post: by
5 posts views Thread by dk60 | last post: by
reply views Thread by noe1818 via AccessMonster.com | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.