Disconnect Presentation Space – Function 2
This function disconnects a Host session from your Windows HLLAPI session.
Prerequisite functions
Connect Presentation Space (function 1)
Function call
WinHLLAPI(DISCONNECTPS,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String NA
Data Length NA
PS Position NA
Return code
Code Description
WHLLOK The keystrokes were sent successfully.
WHLLNOTCONNECTED Your Windows HLLAPI application is currently not connected to a Host session.
WHLLSYSERROR The function failed due to a system error.
Remarks
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).