Global Keyboard Hook on Startup
Posted on 1997-09-13
My Win '95 application has a DLL that contains a global keyboard hook
that monitors all keyboard events. I have come across a strange problem
and cannot figure out what is exactly happening.
When I manually run the application it runs fine and the DLL picks up
the key strokes and status with no problem.
However, if the application is run automatacly from the Statup
directory, and I open "My Connection" to connect to the internet the
keyboard status gets confused.
I check the ALT, CTRL and SHIFT keys with "GetKeyState(VK_CONTROL)",
and after "My Connection" is started the GetKeyState() returns false
values. But if I shut the application and restart it it works fine.
If anybody has any idea I would appreceate any help that you can give