Date: Tue, 4 Apr 2000 14:00:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Jonathan Meunier cc: djgpp AT delorie DOT com Subject: Re: keyboard interrupt In-Reply-To: <38E8B9C6.B2B48772@corel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 3 Apr 2000, Jonathan Meunier wrote: > I know the original handler's address has been saved in > _go32_dpmi_seginfo var, but how can I actually call the original > handler? Use the library function _go32_dpmi_simulate_fcall_iret. Its library docs includes an example. > I looked at the sources, and it is very similar to what Alexei A. > Frounze posted, except for a few things (eg: call count variable, 32k > stack as you mentionned before, etc). The principles are the same, but the library functions also take care to lock the stack and the code, and are generally a good starting place for your own wrapper (should you need one). It's like with any library function: you can roll your own, but it's better to reuse someone else's work than to reinvent the wheel...