Is there a way of disabling or changing what CTRL + ALT + DEL does without using ASM language or WIN API code? I can't figure it out. I just want want CTRL + ALT + DEL to do something else other than restarting the pc in dos. Please help.
Announcement
Collapse
No announcement yet.
CTRL + ALT + DEL
Collapse
X
-
I don't think what you are wanting is possible. The warm boot
sequence is pretty much hard-wired into the BIOS. I posted a
couple of functions (keyboard stuff for PB/DOS)in the
PROGRAMMING forum that you can play with and try out but I don't
think it can be done. (I have, on rare occations, been known to
be wrong before).
------------------
There are no atheists in a fox hole or the morning of a math test.
If my flag offends you, I'll help you pack.
Comment
-
INT 17h provides printer handling functions...?
If you're running a DOS program under Windows, it's Windows that has
control of the keyboard. I don't think there's any simple way to do
what you want, there, although it couldn't hurt to try the approach
for straight DOS. This is more likely to work with 16-bit Windows
(Windows 3.x).
If you're running under straight DOS... there's still no easy way to
get there. I don't think you can make it foolproof without assembly
language, but you might be able to make it work through the KEY/ON KEY
handler. Define key events for Ctrl-Alt-Del, Shift-Ctrl-Alt-Del, etc.
and see where it takes you.
------------------
Tom Hanlin
PowerBASIC Staff
Comment
-
Thanks Mel and everyone else. I was using the ON KEY statement wrong. Originally I had: KEY 15, CHR$(4 + 8) + CHR$(83), which is not a good way of using it. Then I came up with: KEY 15, CHR$(12, 83, 243), 12 is CTRL + ALT combined, 83 is Delete, and 243 makes it so that only when CTRL + ALT + Delete is pressed, it does to the SUB ROUTINE.
Comment
Comment