This is part of Family API which allow to create dual-os version of program runs under OS/2 and DOS
Note: This is legacy API call. It is recommended to use 32-bit equivalent
This call returns the coordinates of the cursor.
VioGetCurPos (Row, Column, VioHandle)
rc (USHORT) - return
Return code descriptions are:
#define INCL_VIO USHORT rc = VioGetCurPos(Row, Column, VioHandle); PUSHORT Row; /* Row return data */ PUSHORT Column; /* Column return data */ HVIO VioHandle; /* Vio handle */ USHORT rc; /* return code */
EXTRN VioGetCurPos:FAR INCL_VIO EQU 1 PUSH@ WORD Row ;Row return data PUSH@ WORD Column ;Column return data PUSH WORD VioHandle ;Vio handle CALL VioGetCurPos Returns WORD
Text based on http://www.edm2.com/index.php/VioGetCurPos_(FAPI)