Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. performance disaster after removing myhook.dll

performance disaster after removing myhook.dll

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++designperformancequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suninwater
    wrote on last edited by
    #1

    Hi,guys: I've got a big problem about system hook on win2k sp4. In my software, there's a hook which intercepts system event ---- keyboard/mouse/message, etc. It is originally designed as a myhook.dll. For some reason, I have to remove this dll, and include all files/functions in it as normal cpp files. While recompiling, well, no warning or error about it and it works fine except big performance penalty. Are there any design or understanding mistakes I have made ? Any suggestion/advice is appreciated. :-) TIA -gusd :confused:

    J 1 Reply Last reply
    0
    • S suninwater

      Hi,guys: I've got a big problem about system hook on win2k sp4. In my software, there's a hook which intercepts system event ---- keyboard/mouse/message, etc. It is originally designed as a myhook.dll. For some reason, I have to remove this dll, and include all files/functions in it as normal cpp files. While recompiling, well, no warning or error about it and it works fine except big performance penalty. Are there any design or understanding mistakes I have made ? Any suggestion/advice is appreciated. :-) TIA -gusd :confused:

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      suninwater wrote: For some reason, I have to cut off this dll, and include all files/functions in it as normal cpp files. :confused: I'm sorry I have no idea what you mean here... [EDIT] Ok I think I understand. The correct word is remove. Replace "cut off" and "cutting off" with remove. As for the answer. I have used application hooks in dlls and in the executable and I have not noticed any performance differences. But I also see no reason why you can not use the DLL. That is the only way for system wide hooks and should be supported for thread hooks. [/EDIT] John

      S 1 Reply Last reply
      0
      • J John M Drescher

        suninwater wrote: For some reason, I have to cut off this dll, and include all files/functions in it as normal cpp files. :confused: I'm sorry I have no idea what you mean here... [EDIT] Ok I think I understand. The correct word is remove. Replace "cut off" and "cutting off" with remove. As for the answer. I have used application hooks in dlls and in the executable and I have not noticed any performance differences. But I also see no reason why you can not use the DLL. That is the only way for system wide hooks and should be supported for thread hooks. [/EDIT] John

        S Offline
        S Offline
        suninwater
        wrote on last edited by
        #3

        OK, as your word, I've replace "cut off" with "remove". Sorry. And, can you give me some help ?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups