User`s guide
lii Contents
Query Session Status—Function 22
This function accesses the status of a specified session.
Prerequisite Functions
None.
WinHLLAPI(QUERYSESSIONSTATUS,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String 18-byte string for returned session information; first byte is a
short name session ID of the session to query, or space or null for
the current session.
Data Length 18
PS Position NA
Parameter Description
Data String Session statusan 18-byte string with the following format:
Byte 1 Short name session ID.
Bytes 2-9 Long name session ID.
Byte 10 Session type: “D” for 3270 Host, “P” for
personal computer, “F” for 5250 host,
“G” for 5250 printer, and “E” for 3270
printer.
Byte 11 Sessions characteristics as a binary
number explained below:
0 EAB
1 PSS
2-7 Reserved
If bit 0 (EAB) = 0 the session has
base
attributes.
If bit 0 (EAB) =1 the session has
extended attributes
If bit 1 (PSS) = 0 the session does
not
support programmed
symbols.
if bit 1 (PSS)=1 the session
supports
programmed symbols.
Function Call
Call Parameters
Return Parameters