performance disaster after removing myhook.dll
-
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:
-
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:
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
-
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
OK, as your word, I've replace "cut off" with "remove". Sorry. And, can you give me some help ?