User`s guide
Contents xxxix
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).
WinHLLAPI(DISCONNECTWINDOWSERVICES,lpbyString,
lpwLength,lpwReturnnCode)
Parameter Description
Data String One-character short name session ID of the presentation
space.
Data Length NA (defaults to 1).
PS Position NA
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.
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.
Function Call
Call Parameters
Return Code
Remarks