Query Cursor Location – Function 7
This function determines the location of the cursor in the Host session presentation space.
Prerequisite functions
Connect Presentation Space (function 1)
Function call
WinHLLAPI(QUERYCURSORLOC,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String NA
Data Length NA
PS Position NA
Return parameters
Parameter Description
lpwLength Data Length: the position of the cursor in the Host session presentation space.
Return code
Code Description
WHLLOK The cursor was successfully located.
WHLLNOTCONNECTED Your Windows HLLAPI application is currently not connected to a session.
WHLLSYSERROR The function failed due to a system error.
Remarks
5250 emulators supports a Presentation Space of 24 rows by 80 columns. When an error message from the host or when the operator presses the SysReq key, a 25th row is displayed. When the row 25 is displayed, it is a valid area for this function.