Disconnect Window Services – Function 102
This function disconnects window services between a Windows HLLAPI application and a specified Windows HLLAPI session.
Prerequisite functions
Connect Window Services (function 101)
Function call
WinHLLAPI(DISCONNECTWINDOWSERVICES,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String One-character short name session ID of the presentation space.
Data Length NA (defaults to 1).
PS Position NA
Return code
Code Description
WHLLOK The function was successful.
WHLLNOTCONNECTED An invalid presentation space was specified, or was not connected for window services.
WHLLSYSERROR The function failed due to a system error.
Remarks
After calling this function, other functions that require a connected session for window services are not valid and should not be called. The Windows HLLAPI application should disconnect from all sessions that have been connected for window services before exiting. This function is not supported for 5250 emulation.