User`s guide

xxxviii Contents
Disconnect Presentation Space—Function 2
This function disconnects a Host session from your Windows HLLAPI session.
Prerequisite Functions
Connect Presentation Space (function 1).
WinHLLAPI(DISCONNECTPS,lpbyString,lpwLength,lpwReturnnCode)
Parameter Description
Data String NA
Data Length NA
PS Position NA
Code Description
WHLLOK The disconnect is successful.
WHLLNOTCONNECTED Your Windows HLLAPI application is not currently
connected to a Host session.
WHLLSYSERROR The disconnect failed due to a system error.
After calling this function, other functions that require a connected session are not valid and should not
be called. The Windows HLLAPI application should disconnect from all connected sessions before
exiting.
This function does not reset the session parameters to their defaults. In order to reset the default values,
the Windows HLLAPI application must issue a Reset System (function 21).
Function Call
Call Parameters
Return Codes
Remarks