Solved

Key board lock under windows 95

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

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 shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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