www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/03/22/00:52:49

Xref: news2.mv.net comp.os.msdos.djgpp:2036
From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
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: <A2B885755D AT fs2 DOT mt DOT umist DOT ac DOT uk>
NNTP-Posting-Host: tantalus-e.hrz.tu-chemnitz.de
Mime-Version: 1.0
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                       *
*****************************************************************

- Raw text -


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