Release – Function 12
This function releases the currently Connected Host session presentation space locked with Reserve (function 11).
Prerequisite functions
Connect Presentation Space (function 1)
Function call
WinHLLAPI(RELEASE,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String NA
Data Length NA
PS Position NA
Return code
Code Description
WHLLOK The Host session presentation space has been reserved (locked).
WHLLNOTCONNECTED Your Windows HLLAPI application is currently not connected to a Host session.
WHLLSYSERROR The function failed due to a system error.
Remarks
If you do not Release the Host session presentation space locked with Reserve (function 11), it remains locked until one of the following occurs:
•  Your Windows HLLAPI application calls Disconnect Presentation Space (function 2).
•  Your Windows HLLAPI application calls Reset System (function 21).