[comp.os.msdos.programmer] how do you mask the keyboard? & whereis antek?

kodiak@matt.ksu.ksu.edu (Bryan D. Nehl) (12/31/90)

I am have a problem that I need to implement a solution
for in a C program that I am working on.

The problem is that I want to mask out the control key
once they enter the program and then when the program exits
the control key will have its usual functionality.  I also
need to mask out the shift keys being simultaneously active.
Not to mention having to get rid of the Sys Rq key. :-)

I want to do this so that the user cannot hit ctrl-alt-del or
ctrl-break or ctrl-c.  Masking out the shift-shift and the 
Sys Rq would prevent the user from switching to a different
"window" when using a multitasking system.

Is the way to do this to write a small assembler function
to do something like:	in 64h,dx ; input from keyboard put into dx
then to apply apply the appropriate mask to dx?

This doesn't seem correct to me since the computer will still 
pick up the ctrl-alt-del and other key sequences?  What if I were
to grab int 19 and then take care of it all myself?  The problem I 
have with that is that none of the books I have cover what to do
when you grab an interrupt.  I know I am asking for trouble if I change
the keyboard interrupt! :-)  I see many system lock ups in the future. :-)

Anyone out there have any ideas?  Source code of any kind would be greatly
appreciated!

Also, antek@binoc.tamu.edu where are you?

Thanks.

Bryan.

/* === Bryan Nehl ===== kodiak%kodiakpc.uucp@phobos.cis.ksu.edu ===+
[  Software Engineer -- USDA -- WERU ][ kodiak@matt.ksu.ksu.edu    ]
[  kodiak@Kodiakpc.Manhattan.KS.US   ][ bdn@phobos.cis.ksu.edu     ]
+_________ ...!rutgers!ksuvax1!matt.ksu.ksu.edu!kodiak __________ */