This is part of Family API which allow to create dual-os version of program runs under OS/2 and DOS
Note: This is legacy API call. It is recommended to use 32-bit equivalent
This call opens the mouse device for the current session.
MouOpen (DriverName, DeviceHandle)
rc (USHORT) - return
Return code descriptions are:
MouOpen initializes the Mouse functions to a known state. The application may have to issue additional mouse functions to establish the environment it desires. For example, after the MouOpen, the collision area is defined to be the size of the entire display. Therefore, to get the pointer to be displayed, the application must issue a MouDrawPtr to remove the collision area.
The state of the mouse after the first MouOpen is:
#define INCL_MOU USHORT rc = MouOpen(DriverName, DeviceHandle); PSZ DriverName; /* Pointer draw driver name */ PHMOU DeviceHandle; /* Mouse device handle */ USHORT rc; /* return code */
EXTRN MouOpen:FAR INCL_MOU EQU 1 PUSH@ ASCIIZ DriverName ;Pointer draw driver name PUSH@ WORD DeviceHandle ;Mouse device handle CALL MouOpen Returns WORD