Xref: news2.mv.net comp.os.msdos.djgpp:2036 From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Hooking interrupts Date: Thu, 21 Mar 1996 16:25:35 +0100 Organization: TU Chemnitz-Zwickau Lines: 27 Message-ID: <315174EF.74C8@Mathematik.tu-chemnitz.de> References: NNTP-Posting-Host: tantalus-e.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp A.Appleyard wrote: > > In djgpp, IS there an easy way of hooking an interrupt? If I wrote a > function:- > I think, this isn't easy. I have done this in my IDE (called RHIDE). Look at the source code for this, found in http://www.tu-chemnitz.de/~rho/rhide/rhides.zip and see the file ide21.cc. There I have done my hook (mostly in assembler). This code redirects read/write/open/close calls for some files with my own code. But this isn't very stable now. Hope this helps in understanding the difficulties in hooking the int 0x21. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************