Query Close Intercept – Function 42
This function allows the application to determine if the user selected to close the emulator program.
Prerequisite functions
Start Close Intercept (function 41)
Function call
WinHLLAPI(QUERYCLOSEINTERCEPT,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String One-character short name session ID of the presentation space.
Data Length Must be specified.
PS Position NA
Return code
Code Description
WHLLOK A close intercept event did not occur.
WHLLNOTCONNECTED An invalid presentation space was specified.
WHLLPARAMETERERROR An invalid option was specified.
WHLLNOTAVAILABLE Start Close Intercept has not been called prior to this function for the specified presentation space.
WHLLSYSERROR The function failed due to a system error.
WHLLPSENDED The session stopped.
WHLLPSCHANGED A close intercept event occurred.
Remarks
This function is not supported for 5250 emulation.