DOS/4G

Tenberry Home

Consulting Services

Order DOS/4G

DOS/4G FAQ

Release Notes

DPMI Spec

* * *

DOS/4GW

DOS/4GW Pro

DOS/4G
for Watcom

DOS/16M

DOS/4G and DOS/4GW FAQ:
Mouse Callbacks


[Previous Section] * [Index of FAQ] * [Next Section]
  1. Must I do anything special to handle mouse callbacks?

1. Must I do anything special to handle mouse callbacks?

No. Although DOS/4G supports the Interrupt 31h interface for managing real mode callbacks, you don't need to bother with them for their single most important application: mouse callback functions. Just register your protected mode mouse callback function as you would in real mode, by issuing Interrupt 33h/0Ch with the event mask in CX and the function address in ES:EDX, and you function will work as expected.

Because a mouse callback function is called asynchronously, the same locking requirement exists for a mouse callback function as for a hardware interrupt handler.


[Previous Section] * [Index of FAQ] * [Next Section]
Last modified 2003.02.06. Your questions, comments, and feedback are welcome.