Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SetWindowsHookEx - what HOOKID to use to be mapped into EACH process space?

9 views
Skip to first unread message

archer

unread,
Jun 2, 2008, 1:38:24 PM6/2/08
to
Well, I'm installing system-wide hook using SetWindowsHookEx and
WH_FOREGROUNDIDLE as HOOKID. Everything works nice so far. However, it
looks like not all processes are hooked (e.g. when I run some console
process my DLL seems does not attach to it).

My question is - what HOOKID to use to have my DLL loaded into *each*
process address space?

Dinesh

unread,
Jun 25, 2008, 12:12:03 AM6/25/08
to


Hi,

You need to set Global Hooks ie the last parameter in
SetWindowsHookEx() should be 0. Hooking work for the processes which
have message queues. Console application dont have message queue. You
can verify this by running spy++.

Hope this helps

Dinesh.

0 new messages