sunjian061197
asked on
Hooks in WinNT4.0
Hi,
Basically I want to write a screen capture program, and I need to check for any key that a user presses no matter which application he is in(so that I can check whether he has pressed the key combinations to activate the screen capture). I have used functions like SetWindowsHookEx(), CallNextHookEx() and so on, and the program works under windows 95. But in Windows NT 4.0, it doesn't seem to be able to detect the key stroke. Can anyone show me what to do? I am using Visual C++ 4.2.
Sun Jian
Basically I want to write a screen capture program, and I need to check for any key that a user presses no matter which application he is in(so that I can check whether he has pressed the key combinations to activate the screen capture). I have used functions like SetWindowsHookEx(), CallNextHookEx() and so on, and the program works under windows 95. But in Windows NT 4.0, it doesn't seem to be able to detect the key stroke. Can anyone show me what to do? I am using Visual C++ 4.2.
Sun Jian
Post your source and we'll try to detect what's wrong.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.