Solved

Key board lock under windows 95

Posted on 1997-11-22
3
283 Views
Last Modified: 2013-12-03
how to get a keyboard device handle under windows 95.
in Win NT iam able to open with CreateFile with "\\\\.\\KBD"
But 95 it is not working. is anyone can help me ?
(this for keyboard locking)

with regards
hari
0
Comment
Question by:haripp
[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
3 Comments
 
LVL 3

Expert Comment

by:vinniew
ID: 1408730
I think you may as well do this:

in your windows program,
use GetSystemParametersInfo(97,...);  //disable ctrl-alt-del

Then, black hole any input. (just don't interpret any keyboard messages until you want to.

This is how screen savers lock the keyboard up.  Will this work for you?

V

Post if you need more.



0
 

Author Comment

by:haripp
ID: 1408731
Hi vinniew,
Thanks for your suggestion, But my requirement is the local machine keyboard should be locked(ie. whatever user types should not accept) and from my application i should post keyboard events to the message que(using keybd_event function.).
The same i am able to do under winnt. the procedure is ..
1. used definedosdevice
2. get the device handle with createfile("\\\\.\\KDB,..)
3. use the handle with deviceiocontrol and lock the keyboard.

in win95 i don'nt know how to the io device handle i hope u can help me.. (or is anyother method with vxds ?....)

expects solution soon
thanks

0
 
LVL 11

Accepted Solution

by:
alexo earned 80 total points
ID: 1408732

Due to Win95 internals, the only method I know of that disables the (physical) keyboard but allows keybd_event is writing a VxD for the keyboard.

If you use VC++ see help on "Keyboard Input Model".

0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 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