www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/21/03:23:30

Date: Wed, 21 Aug 1996 10:09:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bruce Foley <brucef AT central DOT co DOT nz>
Cc: djgpp AT delorie DOT com
Subject: Re: Mouse woes
In-Reply-To: <4v9gbm$b8h@status.gen.nz>
Message-Id: <Pine.SUN.3.91.960821100531.336G-100000@is>
Mime-Version: 1.0

On Mon, 19 Aug 1996, Bruce Foley wrote:

> do this from a DPMI program?  Since the system will be in real mode at
> the time of the interrupt, it cannot call my protected mode routine.
> I know I could just poll int 33 directly from my program (using
> standard real to dpmi reflection), but this seems like a waste, given
> most of the time it won't be returning anything useful...

You need to wrap your protected-mode function with a real-mode stub.  
The library function `_go32_dpmi_allocate_real_mode_callback_retf' is the 
vehicle to do that.  The DJGPP FAQ list (available as v2/faq201b.zip from 
the same place you get DJGPP) has more details about this in section 18.8.

- Raw text -


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