The returned event object or semaphore is in a non-signaled state
when the start request function returns. The event object is in the
signaled state each time a close request occurs. To receive notification
of multiple close request events, put the event object into the signaled
state each time using SetEvent or the Query Close Intercept (42) function.
After using this function, your application program can use the Query Close Intercept (42) function to determine
when a close request has occurred. The application can wait on the
returned event object to determine when the event has occurred.
This is not an exclusive call. Multiple applications can request
this function for the same short session ID.
If there are no applications intercepting close requests for a
session, any subsequent close requests selected by the user from the
emulator operations dialog result in a normal stop requested for that
session.