How to catch Ctrl alt delete??

rajeshs used Ask the Experts™
Is it possible for an application in Windows 95/NT to
catch control + alt + delete key combination? Is it
possible using VB or VC++?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Yes, it is possible. You have to tell 95 that you are the current screensaver.
Search the MSDN for this topic.
C/A/D is handled down at the BIOS level. Windows can process it, but only if the BIOS passes it up the chain. The best spot to stop it is down at the BIOS.

You'ld have to write a DOS TSR program to take over the C/A/D interrupt vector and then do nothing in response.

This is *NOT* a clever thing to do as it will make the user think that your software crashes *really hard* (they have to use the RESET button or power cycle) instead of being able to C/A/D and just terminat the task.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial