Date: Tue, 20 Apr 1999 12:42:01 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Mark Usher cc: djgpp AT delorie DOT com Subject: Re: a complication with real mode function callback. In-Reply-To: <7f5hap$k75$1@orudios.magnet.at> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 15 Apr 1999, Mark Usher wrote: > How can I be sure of reserving exactly 8 bytes at the start of my event > handler that I pass with go32_dpmi_allocate_real_mode_callback_retf ? I have never tried anything like that, but I think this is impossible. The first bytes of the callback are used by the callback code itself, and the callback is created by the DPMI server. So the only feasible way to achieve this would be to bypass the callback and _go32_dpmi_allocate_real_mode_callback_retf entirely, and instead to write your own real-mode handler in assembly.