Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
MOU_SETEVENTMASK (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(0L, pfEvent, 0x0054, 0x0007, hDevice)
PUSHORT pfEvent; /* pointer to variable for event mask */
HFILE hDevice; /* device handle */
The MOU_SETEVENTMASK function sets the event mask of the pointing device.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pfEvent Points to the variable that contains the event mask. This
variable can be a combination of the following values:
Value Meaning
─────────────────────────────────────────────────────────────────
MOUSE_MOTION Motion; no buttons pressed.
MOUSE_MOTION_WITH_BN1_DOWN Motion with button 1 pressed.
MOUSE_BN1_DOWN Button 1 pressed.
MOUSE_MOTION_WITH_BN2_DOWN Motion with button 2 pressed.
MOUSE_BN2_DOWN Button 2 pressed.
MOUSE_MOTION_WITH_BN3_DOWN Motion with button 3 pressed.
MOUSE_BN3_DOWN Button 3 pressed.
hDevice Identifies the pointing device that receives the device-control
function. The handle must have been created previously by using
the DosOpen function.
Return Value
The return value is zero if the function is successful or an error value if
an error occurs.
See Also
DosOpen, MOU_GETEVENTMASK
♦