Post Intercept Status – Function 52
This function notifies WinHLLAPI that a keystroke obtained with Get Key (function 51) has been accepted or rejected. If rejected, a beep is generated.
Prerequisite functions
Start Keystroke Intercept (function 50)
Function call
WinHLLAPI(POSTINTERCEPTSTATUS,lpbyString,lpwLength,lpwReturnnCode)
Call parameters
Parameter Description
Data String A 2-byte string in the following format:
Byte 1 Short name session ID of the desired Host session, or space or null for the current Host session.
Byte 2 “A” to accept the keystroke; “R” to reject the keystroke.
Data Length NA (length of 2 is implied).
PS Position NA
Return code
Code Description
WHLLOK The notification is successful.
WHLLNOTCONNECTED The Host session presentation space is invalid.
WHLLPARAMETERERROR One or more call parameters are invalid.
WHLLNOTAVAILABLE Intercept (function 50) was not called prior to this function call.
WHLLSYSERROR The function failed due to a system error.