Date: Fri, 24 Oct 1997 12:41:21 +0200 (IST) From: Eli Zaretskii To: Dean cc: djgpp AT delorie DOT com Subject: Re: Problems installing mouse handler In-Reply-To: <344df950.23766063@news.zip.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 22 Oct 1997, Dean wrote: > my_handler.pm_offset = (int)mouse; > my_handler.pm_selector = _go32_my_cs(); > _go32_dpmi_allocate_iret_wrapper( &my_handler ) > _go32_dpmi_set_protected_mode_interrupt_vector( interrupt, &my_handler ) Int 33h is a software interrupt. Software interrupts are NOT reflected to protected mode (see the DPMI spec for details). If you really need to hook Int 33h, you need to install a REAL-MODE handler for it. But I suggest to do this by using function 0Ch of Int 33h to register your handler, as somebody else pointed out in this thread. The DJGPP FAQ (v2/faq210b.zip from the same place you get DJGPP) has some more info about this in section 18.8.