home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!hplabs!felix!fritz!scotth
- From: scotth@felix.filenet.com (Scott Hopson)
- Newsgroups: comp.lang.c
- Subject: Re: Routine to disable Ctrl-Alt-Del on PC
- Message-ID: <19596@fritz.filenet.com>
- Date: 16 Aug 92 19:33:13 GMT
- References: <1992Aug13.032504.8555@cs.uow.edu.au>
- Reply-To: scotth@fritz.filenet.com (Scott Hopson)
- Organization: FileNet Corp., Costa Mesa, CA
- Lines: 34
-
- In article <1992Aug13.032504.8555@cs.uow.edu.au> u9035710@cs.uow.edu.au (Scott Anthony Barnett) writes:
- >Help !!
- >
- >I am after a little routine (either in C or inline assembler) to simply
- >disable the Ctrl-Alt-Del interrupt on an IBM PC.
- >
- >I am using Borland C++ v 3.0 (in standard ANSI C).
- >
- >Also, I would like to disable Ctrl-Break.
- >
-
- The Ctrl-Alt-Del function is handled by the INT 9 keyboard interrupt.
- To redirect this function you need to trap INT 9 and check for the
- key combination while passing all others onto the orginal INT 9 handler.
- If you are not familiar with DOS internals this could be quite difficult
- to do. It is possible to do it in C but you will need some inline ASM code.
- Disabling Ctrl-Break is a much easier task. In Turbo or Borland C there
- is a function which allows you to trap Ctrl-Break and handle it anyway
- you want.
-
- The Big question now is: Do you want to disable these functions within
- a particular program or do you want to disable it while at the DOS Prompt.
- To do it from DOS you will need to run a TSR which throws another angle
- into the approach you use.
-
- I will look and see if I have any code to distribute that does this.
- If you want some let me know. Maybe I'll post some code if I can find it.
-
-
-
-
-
- --
- Scott Hopson (scotth@filenet.com)
-