Solved

Hooks in WinNT4.0

Posted on 1998-04-01
2
171 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now