Solved

Key board lock under windows 95

Posted on 1997-11-22
3
270 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Build VS2015 project in bat command 3 80
WPF issue with Trigger 2 96
Trouble with References... 5 45
What .NET website keeps me current? 9 58
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.…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

864 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

23 Experts available now in Live!

Get 1:1 Help Now