Has anyone used this dll? It is a C dll written by J. Thuemmler and
distributed by allapi.net. It allows me to monitor messages and
catch
messages from another application.
I am using it to monitor for button clicks in another app. Further
if
the other app should get closed I monitor for it to get reopened then
I try to reset the hook and continue monitoring the buttons. This is
where I am having problems. The dll works flawlessly the first time
I
set the hook. However if the app is closed then reopened I am unable
to establish a new hook.
The author says in his documentation for the dll that:
"NOTE:
You can call the function for setting a hook only one time. A second
call after you have
installed a hook already will return 0 (Zero). If you want to install
both of the hooks, you
must do it in one single call."
But it seams as though clearing the hook (by setting the hook win
handle to 0) should reset this and allow it to be set again.
Can anybody tell me if this is a true statement and what I might be
doing wrong.
Thanks,
Steve
Steve, I have used the dll, but I don't have any experience
with what you are attempting to do.
My advice is to COMPLETELY remove your first hook, getting
the system back the way it was, before attempting to set
your hook again.
Also, the dscwpmsg.dll has a lot to do monitoring _ALL_ the
system messages -- it's a wonder it can keep up. You may
have an easier time with one of Theummler's other hooking
dll's, for example: the DSMOUSE mouse-hooking dll, which
has a lot fewer messages to process...
cheers, jw
> Has anyone used this dll? It is a C dll written by J. Thuemmler and
> distributed by allapi.net. It allows me to monitor messages and
[quoted text clipped - 26 lines]
> Thanks,
> Steve