User`s guide

Contents cxxi
Connect Structured Fields—Function 120
This function allows an application to establish a connection with a Host session.
Prerequisite Functions
None
WinHLLAPI(CONNECTSTRFLDS,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String An 11-byte string for returned semaphore address. The
first byte is a short name session ID of the session to
query, or space or null for the current session. Bytes 2-5
are the address of the query reply data buffer.
Byte 1 Short name session ID, or space or null
for the current session.
Byte 2-5 Four byte address of the query reply data
buffer.
Bytes 6-11 Reserved for return parameters.
Data Length Must be specified.
PS Position NA
Parameter Description
Data String An 11-byte string with the following format:
Byte 1 Short name session ID.
Bytes 2-5 4-byte address of the query reply data buffer.
Bytes 6-7 16-bit value which represents the
destination/origin ID returned to the
application by the emulator.
Bytes 8-11 Address of the semaphore with connection
status.
Function Call
Call Parameters
Return Parameters