Translate page

IApplication VBS_GetSessions (Method)


Determine the number of active sessions and retrieve information about each of the sessions.

Function VBS_GetSessions(buffer As Variant) As Long

Parameters

NoNameTypeOptionalDefaultDescription
1bufferVariantNo-

Buffer to hold the session information
On return from a successful call, the buffer will contain the following information for each active session:
Byte 1: one character session ID
Byte 2-9: long session ID.  QWS3270 does not use a long session name so these bytes will always be 0
Byte 10: Session Type: H for Host; P for personal computer
Bytes 11-12: Size of the screen expressed as a binary number (not ASCI).I

Return Code

Description

JGS_OK

Success

JGS_MEMORY

Not enough memory

JGS_SYSERROR

The function failed due to a system error

Sample Code

Dim myString as Variant
Dim result as Long
myString = ""
result = sess.VBS_GetSessions(myString)


QWS3270 Automation copyright © Jolly Giant Software Inc. All rights reserved.