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_UPDATEDISPLAYMODE (1.2)
Changes                                             Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pvConfigInfo, pviomi, 0x0051, 0x0007, hDevice)
PVOID pvConfigInfo;     /* pointer to structure with configuration info */
PVIOMODEINFO pviomi;    /* pointer to structure with screen mode        */
HFILE hDevice;          /* device handle                                */
 
The MOU_UPDATEDISPLAYMODE function notifies the mouse device driver that the
display mode has been modified.
 
Parameter     Description
────────────────────────────────────────────────────────────────────────────
 
pvConfigInfo  Points to the VIOCONFIGINFO structure that contains the
              current display-configuration information.
 
pviomi        Points to the VIOMODEINFO structure that contains the
              display-mode information.
 
hDevice       Identifies the pointing device that receives the
              device-control function. This 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.
 
Comments
 
When the video I/O subsystem or registered video I/O subsystem sets the
display mode, it must notify the mouse device driver prior to switching
display modes, in order to synchronize the mouse device driver's functions
that update the pointer.
 
See Also
 
DosOpen, VioSetMode, VIOMODEINFO, VIOCONFIGINFO