Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / August 2007



Tip: Looking for answers? Try searching our database.

dscwpmsg.dll

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 24 Aug 2007 00:59 GMT
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
mr_unreliable - 30 Aug 2007 04:25 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.