Solved

Hooks in WinNT4.0

Posted on 1998-04-01
2
179 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
MSDN Subscription - Azure and NFP's 3 85
Problem to file 3 100
Dialogbox API leak? 18 119
Starting to use Git with Visual  Studio Online 1 71
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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