ioctl12.hlp (Topic list)
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_GETEVENTMASK (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pfEvents, 0L, 0x0065, 0x0007, hDevice)
PUSHORT pfEvents;    /* pointer to variable for event mask */
HFILE hDevice;       /* device handle                      */
 
The MOU_GETEVENTMASK function retrieves the event mask of the current
pointing device.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
pfEvents   Points to the variable that receives 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_SETEVENTMASK
 
                                      ♦