Solved

Hooks in WinNT4.0

Posted on 1998-04-01
2
178 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:sunjian061197
2 Comments
 
LVL 11

Expert Comment

by:alexo
ID: 1412499
Post your source and we'll try to detect what's wrong.
0
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1412500
Have you tried using a hot key? The hot key control does basically what you want without using a hook.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question