Solved

Hooks in WinNT4.0

Posted on 1998-04-01
2
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

634 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