Announcement

Collapse

Maintenance

The forum could be offline for 30-60 minutes in the very near future for maintenance (said 3pm Pacific). I was behind on getting this notice. I do apologize.
See more
See less

CTRL + ALT + DEL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CTRL + ALT + DEL

    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.

  • #2
    int 17h

    ------------------
    ICQ: 123632482

    Comment


    • #3
      What exactly does this interrupt do? Can you post an example?

      Comment


      • #4
        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


        • #5
          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


          • #6
            Yeah i've tried the ON KEY, it still reboots. I am working through just DOS, this is for a GUI similar to Windows and Linux that my friend is working on. Mel, can you link me to the particular page where you posted? Thank you for all your help.

            ------------------

            Comment


            • #7
              here 'tis. good luck.
              http://www.powerbasic.com/support/pb...ad.php?t=18630

              ------------------
              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


              • #8
                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

                Working...
                X