sessions Type: System..::.String %Buffer Buffer to hold session information. The sessions parameter will on successful return contain session information for each active host session in the following format:
String position
Meaning
1
Session ID character.
2 - 9
Session long name, always 8 spaces for QWS.
10
Session type: "H" for 'host', "P" for 'personal computer.'
11 - 12
Size of the presentation space, expressed as a binary number.
numberOfSessions Type: System..::.Int32 %If If the return value is Okor ParameterError, this will contain the number of active host sessions at the time of the call. Note that there is no guarantee that a session that was open at the time of the call can not be closed or disconnected by the time this method returns.
Return Value
The StatusCodeindicating the result of the operation.
This can be one of the following values:
Status code
Description
Ok
Information on host sessions retrieved successfully.
WHLLPARAMETERERROR
The size of the buffer was too small; use the numberOfSessions parameter return value to calculate the correct buffer size.