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_SETPROTDRAWADDRESS (1.2)
Changes                                             Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pbDrawData, pbFunction, 0x005A, 0x0007, hDevice)
PBYTE pbDrawData;    /* pointer to drawing data                    */
PBYTE pbFunction;    /* pointer to structure with drawing function */
HFILE hDevice;       /* device handle                              */
 
The MOU_SETPROTDRAWADDRESS function notifies the mouse device driver of the
address of a protected-mode pointer-draw function. This function is valid
for protected mode only.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
pbDrawData  Points to the PTRDRAWDATA structure.
 
pbFunction  Points to the PTRDRAWFUNCTION structure that contains the
            address of the pointer-draw function.
 
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.
 
Comments
 
The pointer-draw routine is an installed, pseudo-character device driver.
The mouse handler must do the following:
 
♦  Open the pointer-draw device driver.
 
♦  Query the pointer-draw device driver for the address of its entry point.
 
♦  Pass the resulting address of the pointer-draw entry point to the mouse
   device driver that uses this function.
 
See Also
 
DosOpen, MOU_SETREALDRAWADDRESS, PTRDRAWFUNCTION, PTRDRAWDATA
 
                                      ♦