Results 1 to 15 of 15

Thread: Need a System-Wide Hook DLL

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Need a System-Wide Hook DLL

    Anyone have a DLL which will handle all the different WH hooks they are willing to post or send me via email?

    Thanks
    David

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774

  3. #3
    jim mcnamara
    Guest
    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).

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    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.

  5. #5
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    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.

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    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

  7. #7
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    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 ??

  8. #8

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    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.

  9. #9
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    sorry for budding in.. What are you talking about?>
    SeaHag

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    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.

  11. #11
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901
    Wowsers..
    Whats a Hook?

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Hope no offense will be taken, but recommend you click Patoooey's link to vbAccelerator-- they do a great job
    explaining it.

  13. #13
    Fanatic Member SeaHag's Avatar
    Join Date
    Jul 2001
    Location
    Lake Huron
    Posts
    901

    Cool

    OK KOOL



  14. #14

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    bump

  15. #15

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    bump

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width