Table of Contents

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

2021/09/17 04:47 · prokushev · 0 Comments
2021/08/20 03:18 · prokushev · 0 Comments

MouOpen

This call opens the mouse device for the current session.

Syntax

MouOpen (DriverName, DeviceHandle)

Parameters

Return Code

rc (USHORT) - return

Return code descriptions are:

Remarks

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:

Bindings

C

#define INCL_MOU
 
USHORT  rc = MouOpen(DriverName, DeviceHandle);
 
PSZ     DriverName;    /* Pointer draw driver name */
PHMOU   DeviceHandle;  /* Mouse device handle */
 
USHORT  rc;            /* return code */

MASM

EXTRN     MouOpen:FAR
INCL_MOU  EQU 1
 
PUSH@  ASCIIZ  DriverName    ;Pointer draw driver name
PUSH@  WORD    DeviceHandle  ;Mouse device handle
CALL   MouOpen
 
Returns WORD

MouClose