User`s guide

Contents lxxxiii
Start Close Intercept—Function 41
This function allows the application to intercept user requests to close the emulation program.
Prerequisite Functions
None.
WinHLLAPI(STARTCLOSEINTERCEPT,lpbyString,lpwLength,
lpwReturnnCode)
WinHLLAPIAsync(hWnd,STARTCLOSEINTERCEPT,lpbyString,
lpwLength,lpwReturnnCode)
Parameter Description
Data String A 5-byte string for returned semaphore address. The first
byte is a short name session ID of the session to query, or
space or null for the current session.
Data Length Must be specified
PS Position NA
Parameter Description
Data String A 5-byte string with the following format:
Byte 1 Short name session ID, or space
or null for the
current session.
Bytes 2-5 Semaphore address.
Code Description
WHLLOK The function was successful.
WHLLNOTCONNECTED An invalid presentation space was specified.
WHLLPARAMETERERROR An invalid option was specified.
WHLLSYSERROR The function failed due to a system error.
WHLLNOTSUPPORTED The function was not supported by the emulation program.
WHLLCANCEL The asynchronous function was cancelled.
Initially, the semaphore is set. After using this function, close requests from the user are discarded and
the semaphore is cleared. Your application program can use the Query Close Intercept function to
determine when a close request has occurred. This function is not supported for 5250 emulation.
Function Call
Call Parameters
Return Parameters
Return Code
Remarks