Article View: comp.os.os2.programmer.misc
Article #217Re: Possible to disable Ctrl-Alt-Del or NumLock keys?
From: Laszlo Zeke
Date: Mon, 15 Aug 1994 15:07
Date: Mon, 15 Aug 1994 15:07
19 lines
1756 bytes
1756 bytes
Keith Bennett (kbennett@cpcug.org) wrote: : I am working on a turnkey system using OS/2 as the underlying operating : system. The programs in the application are PM programs. : Is there any way to trap the Ctrl-Alt-Del key sequence? This is very : important as many of the users are coming from DOS and don't understand : that it's not OK to reboot this way. Yes. Try DosDevIOCtl category 4 function 56H with key id 0xFFFF. This also will disable CTRL-ESC and ALT-ESC in full screen sessions. It should disable them under PM, but OS/2 works in mysterious ways. This may not be acceptable. (If you have any full screen sessions, they must provide some way to get back to PM!) : Also, is there any way to trap the NumLock key? You should be able to catch it in an application through the WM_CHAR message. You may be able to catch it system wide using hook procedures. Good luck.
Technical Details
Message-ID:
<incodeCuL0p9.A1q@netcom.com>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!news.kei.com!yeshua.marcam.com!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!incodeReferences:
<3220ud$qq3@cpcug.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cd94,968687789696ca82 X-Google-Attributes: gid10cd94,public X-Google-Thread: 11307a,968687789696ca82 X-Google-Attributes: gid11307a,public X-Google-ArrivalTime: 1994-08-15 09:37:27 PST Newsgroups: comp.os.os2.programmer.misc,bit.listserv.os2-l Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!hookup!news.kei.com!yeshua.marcam.com!usc!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!incode From: incode@netcom.com (Laszlo Zeke) Subject: Re: Possible to disable Ctrl-Alt-Del or NumLock keys? Message-ID: <incodeCuL0p9.A1q@netcom.com> Followup-To: comp.os.os2.programmer.misc,bit.listserv.os2-l Organization: NETCOM On-line Communication Services (408 261-4700 guest) X-Newsreader: TIN [version 1.2 PL1] References: <3220ud$qq3@cpcug.org> Date: Mon, 15 Aug 1994 15:07:57 GMT Lines: 19