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

MouSetDevStatus

This call sets the mouse device driver status flags for the installed mouse device driver.

Syntax

 MouSetDevStatus (DeviceStatus, DeviceHandle)

Parameters

The passed parameter is a 2-byte set of flags. Only the high-order byte has meaning.

Bit Description
15-10 Reserved, set to zero.
9 Set if mouse device is to return data in mickeys.
8 Set if the drawing operations for the pointer draw routine are to be disabled.
7-0 Reserved, set to zero.

Return Code

rc (USHORT) - return:Return code descriptions are:

Remarks

MouSetDevStatus is the complement to MouGetDevStatus. However, not all status flags may be set with MouSetDevStatus. Only the flags corresponding to the following functions may be modified:

Normally, mouse data is returned to the application with the absolute display mode coordinates of the pointer image position on the display screen. By setting this status flag, mouse data is returned in relative mickeys, a unit of mouse movement.

Normally, the pointer draw device driver is called for all drawing operations. By setting this status flag, the mouse device driver does not call the pointer draw device driver. The application must draw any required pointer image on the screen.

Bindings

C

#define INCL_MOU
 
USHORT  rc = MouSetDevStatus(DeviceStatus, DeviceHandle);
 
PUSHORT DeviceStatus;  /* Status flags */
HMOU    DeviceHandle;  /* Mouse device handle */
 
USHORT  rc;            /* return code */

MASM

EXTRN  MouSetDevStatus:FAR
INCL_MOU            EQU 1
 
PUSH@  WORD    DeviceStatus  ;Status flags
PUSH   WORD    DeviceHandle  ;Mouse device handle
CALL   MouSetDevStatus
 
Returns WORD