Return Parameters

This function returns a data string and a return code.

Byte Definition
Standard Enhanced  
1 1 One of the following values:
  • A 1-character presentation space short session ID
  • A blank or null indicating a function call for the current connection presentation space
2–4 Reserved
2–17 5–20 Four 32-bit unsigned integers that return:
2–5 5–8 XLeft Long integer in pels of the left X coordinate of the rectangular window relative to the desktop window
6–9 9–12 YBottom Long integer in pels of the bottom Y coordinate of the rectangular window relative to the desktop window
10–13 13–15 XRight Long integer in pels of the right X coordinate of the rectangular window relative to the desktop window
14–17 16–20 YTop Long integer in pels of the top Y coordinate of the rectangular window relative to the desktop window
Return Code:
The following codes are defined:
Return Code Explanation
0 The Query Window Coordinates function was successful.
1 Your program was not currently connected to the host session.
9 A system error occurred.
12 The session stopped.