I've implemented keyboard hooks in several languages (AutoIt, C#) using SetWindowsHookEx
and WH_KEYBOARD_LL
. I also know of a couple of C++ programs that have the same issue.
I didn't post any code because they work perfectly in Windows XP. However, under Windows 7, at some point the hooks become "unloaded" or stop processing any further keys. It seems like it may be related to a low memory condition, but I'm not really sure.
Did Microsoft change the way keyboard hooks work in Vista or 7 to add some logic that would unload third-party hooks under certain circumstances?
Related questions: