subcalls.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.
VioGetCurPos (1.2)
◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_VIO
USHORT VioGetCurPos(pusRow, pusColumn, hvio)
PUSHORT pusRow; /* pointer to variable for row */
PUSHORT pusColumn; /* pointer to variable for column */
HVIO hvio; /* video handle */
The VioGetCurPos function retrieves the position of the cursor on the
screen.
The VioGetCurPos function is a family API function.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pusRow Points to the variable that receives the current row position of
the cursor.
pusColumn Points to the variable that receives the current column position
of the cursor.
hvio Identifies an advanced video-input-and-output (AVIO) presentation
space. For AVIO programs, this handle must have been created
previously using the VioCreatePS function. For other programs,
hvio must be NULL.
Return Value
The return value is zero if the function is successful. Otherwise, it is an
error value, which may be the following:
ERROR_VIO_INVALID_HANDLE
Example
This example calls VioGetCurPos to retrieve the current row-and-column
position of the cursor:
USHORT usRow, usColumn;
VioGetCurPos(&usRow, /* row address */
&usColumn, /* column address */
0); /* video handle */
See Also
VioGetCurType, VioSetCurPos, VioCreatePS
♦