Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Disabling Mouse and Keyboard

Posted on 1999-07-29
Medium Priority
Last Modified: 2010-04-15
How can i disable the keyboard and mouse when a process is running in the background in windows 95/98/nt environment?

I must be able to restore the input devices after the process is over. so, if i can call an  'exe' file which will deactivate keyb/mouse and another 'exe' file which will restore it.  The process running should have the highest severity level rather than the 'exe' file called.
Question by:Ramki072999
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
  • 3
  • 2
LVL 11

Accepted Solution

alexo earned 280 total points
ID: 1264075
You can use systemwide WH_KEYBOARD and WH_MOUSE hooksto "swallow" the notifications.

See the description of the SetWindowsHookEx() API and be sure to read the following: (costs 5 points) (costs 4 points)

Also, you posted the message twice.  You may wish to remove the other one to refund 75 points.
LVL 11

Expert Comment

ID: 1264076

Expert Comment

ID: 6820329
This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects that and the expert will now receive these points, all verified.
Moderator @ Experts Exchange
LVL 11

Expert Comment

ID: 6820506
Was it something specific to me or a site-wide problem?

Expert Comment

ID: 6820561
These -1 userid problems are throughout the topic areas, many date back to 1998 and 1999.  From what I've researched, these anomolies occur when at the time of acceptance there is a down condition from the server, from ISP or the like.  I recall that timeframe having many jsp-500 errors.  I've been doing research on all the numeric entries I find at the end of most Open Question queues that, when accessed, only reflect the -1 condition and then the jsp-500 error when you access.  Here's an example:

These, I found, couldn't be addressed directly.  Researched further to find that some people's profile were out of balance.  Let's use yours as an example, wich shows:

Questions Asked 112
Question Grading Record 110 Answers Graded / 111 Answers Received

This shows an imbalance.  I then used the Power Search feature to isolate all grades = ? ... then found that both a Proposed Answer and a -1 userid Accepted answer existed, which means that in the acceptance process of converting the Proposed Answer to the accepted answer, it did not complete.  Here is one that applies to you which I will also be fixing.  This takes 8 manual steps, a very tedious process, but will be done.  I'll leave this until you've had a chance to check it out and then will await your comment to fix it.

It's been very interesting.  Bottom line, the fix will finally award the intended experts who were granted but whose points never flowed to them.  It's been like a detective job to decipher.  :)

EE Moderator

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at  To view more iPhone tutorials, visit This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.

704 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