Trapping the CTRL+ALT+DEL keys under DOS???

Hi!

Is there any way by which I can trap the 3 finger salute under DOS :)

I'm using Borland C++ 3.0.

Help will be very much appreciated!




Comments

  • : Hi!

    : Is there any way by which I can trap the 3 finger salute under DOS :)

    : I'm using Borland C++ 3.0.

    : Help will be very much appreciated!


    Hello,


    I think the only way to do it is to replace the BIOS keyboard handler.


    Mark


  • Hi Mark!

    Many Thanx for replying :)

    How do I do that(replacing the BIOS Keyboard handler)???

    Thanx


  • Hi,


    You should be able to chain the interrupt (look for chain or chain_int or whatever in the help).


    Then search the net for Ralph Browns PC Interrupt list to finc which one you need to chain.

    As I assume CTRL+ALT+DEL is given an interrupt.


    Hope it helps

    Phil


  • Hi,


    Found this, not sure how much use it is and the formattings gone to s**t but hopefully it may give you some clues


    Cheers

    Phil




    INT 09 - IRQ1 - KEYBOARD DATA READY

    Notes: generated when data is received from the keyboard. This is normally a scan code, but may also be an ACK or NAK of a command on AT-class keyboards. may be masked by setting bit 1 on I/O port 21h

    if the BIOS supports an enhanced (101/102-key) keyboard, it calls

    INT 15/AH=4Fh after reading the scan code from the keyboard and before further processing

    the interrupt handler performs the following actions for certain special keystrokes:

    Ctrl-Break invoke INT 1B, set flag at 0040h:0071h

    SysRq invoke INT 15/AH=85h

    Ctrl-Numlock place system in a tight wait loop

    Ctrl-Alt-Del jump to BIOS startup code (either F000h:FFFFh or the destination of the jump at that address)

    Shift-PrtSc invoke INT 05







  • Hi Phil!

    Many Thanx for replying!

    Your information is very useful to me!

    But I still have a doubt about how exactly do I trap the Ctrl+Alt+Del keys.

    for e.g. in Windows when we press the combination,

    the Close Program Dialog appears.

    Similarly is it possible to do under DOS?

    If so I'll be very greatful if any one can give me the source, please...!

    Regards


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories