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.
PTR_GETPTRDRAWADDRESS (1.2)
Changes                                             Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVIOCTL
 
USHORT DosDevIOCtl(pbFunctionInfo, 0L, 0x0072, 0x0003, hDevice)
PBYTE pbFunctionInfo;    /* pointer to structure for function information */
HFILE hDevice;           /* device handle                                 */
 
The PTR_GETPTRDRAWADDRESS function retrieves the entry-point address and
other information for the pointer-draw function (the function that draws the
mouse pointer on the screen).
 
Parameter       Description
────────────────────────────────────────────────────────────────────────────
 
pbFunctionInfo  Points to PTRDRAWADDRESS structure that receives the
                function information.
 
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 mouse device driver uses the pointer-draw function to update the pointer
image on the screen, and retrieves the address and saves it to use whenever
the pointer moves.
 
See Also
 
DosOpen, PTRDRAWADDRESS
 
                                      ♦