Anyone have a DLL which will handle all the different WH hooks they are willing to post or send me via email?
Thanks
David
Printable View
Anyone have a DLL which will handle all the different WH hooks they are willing to post or send me via email?
Thanks
David
Just a note - when you implement a system-wide hook, you are entering a kind of time warp.
You're essentially turning windows into Windows 3.11
What I mean is if your process hangs, the whole system hangs.
You can't do ctl-alt-del to kill off the hung process. This has severe implications for development - ie., if you screw up you have to reboot. If your code has a bug, the user gets to reboot and lose 3 hours of document entry into Word (or whatever).
Thanks for posts.
Will check out file Patoooey.
Jim:
Interesting comment re: win 3.1. Are you sure of this. There are about 15 different hooks you can make in the O/S and each one does something a little different. Never used a system-wide however so time will tell. WIll approach with caution -- saving frequently!!!
My case shouldn't matter as want to quickly hook another process to minimize app and then exit.
Yes.....system wide hooks are a "feast or famine" kind of thing. If you do it, do it like you mentioned. Hook, do quick work, un-hook.
My understanding is the code/dll on that link doesn't block the 3-finger salute and you can specify which messages to capture which makes things a little less scarey.
Never tested it so your on your own. :)
Patoooey:
Have you ever used vbAccelerators Hook DLL.
Looking at *.rtf file indicates it support WH_CBT
but when I use it I get a GPF.
If you have, and are willing, will post code for a
quick looksee.
Thanks
David
I've never used it but I thought the WH_CBT hook was intended for computer based training programs and was never used for some reason ??
Any other hook work ??
Your right about training but also has other uses.
Only hook I know which will trap window before it is created.
so you can send message to modify window. My case
Show it minimized.
sorry for budding in.. What are you talking about?>
SeaHag
No Butting. Glad to have any constructive input.
Trying to locate a DLL which will support systemwide
hooking for all 14/15 hooks.
Patoooey suggested vbAccelerator site. Downloaded their
DLL, but when try to use it systemwide with WH_CBT
get a GPF.
Ultimate objective is this:
Have an out of process app that I call their DLL through their OCX
by "XYZ.Start". Once started their App does shows above mine
until I minimize it. Want to hook their app before window creation so that I can minimize it prior to it showing.
Currently, use Window Title then minimize but this is after window is created so it show for about 10-15 seconds on top of mine.
Wowsers..
Whats a Hook?
Hope no offense will be taken, but recommend you click Patoooey's link to vbAccelerator-- they do a great job
explaining it.
OK KOOL
:cool:
bump
bump