Date: Wed, 21 Aug 1996 10:09:43 +0200 (IST) From: Eli Zaretskii To: Bruce Foley Cc: djgpp AT delorie DOT com Subject: Re: Mouse woes In-Reply-To: <4v9gbm$b8h@status.gen.nz> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.