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_GETPTRPOS (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(pplPosition, 0L, 0x0067, 0x0007, hDevice)
PPTRLOC pplPosition; /* pointer to structure for position */
HFILE hDevice; /* device handle */
The MOU_GETPTRPOS function retrieves the position of the current screen's
pointer.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pplPosition Points to the PTRLOC structure that receives the new pointer
position.
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 coordinate values depend on the display mode. If the display is in text
mode, character-position values are used. If the display is in graphics
mode, pel values are used.
See Also
DosOpen, MOU_SETPTRPOS, PTRLOC
♦