www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/11:28:59

Message-Id: <199702131613.QAA26153@mx2.rmplc.co.uk>
From: "Liam" <marl AT rmplc DOT co DOT uk>
To: "Michael Dylan Ryan" <mdr6 AT dana DOT ucc DOT nau DOT edu>
Cc: <djgpp AT delorie DOT com>
Subject: Re: Help with Control-break code
Date: Thu, 13 Feb 1997 15:51:39 -0000
MIME-Version: 1.0

You can use inline assembly to turn off, or create your own
ctrl-c ctrl-brk... interupts

	mov	ah,25h		; means change CTRL-C interupt
	mov	al,23h
	mov	dx,CTRL_INTERUPT	; your coded interupt
	int	21h


CTRL_INTERUPT:	iret		; return with out doing anything

this would work but you would have to convert it into AT&T syntax, there
could be a way of disabling them but here you can customise them.
Liam

----------
> From: Michael Dylan Ryan <mdr6 AT dana DOT ucc DOT nau DOT edu>
> To: djgpp AT delorie DOT com
> Subject: Help with Control-break code
> Date: 12 February 1997 18:40
> 
> 
> Can someone give me some code (or point me in the right direction) on
> disabling control-break, control-c, control-alt-del?
> 
> I am using DJGPP v2.0.
> 
> Thanks,
> 
> 
> --
> --
> Michael D. Ryan [Dark Brotherhood Software]
> Email: mdr6 AT dana DOT ucc DOT nau DOT edu
> Shareware / Freeware programs available on my web page at:
> http://dana.ucc.nau.edu/~mdr6/programs.html
> --

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019