Function 11 - check for event, no wait.

If the message queue contains event, function reads out and return it. If the queue is empty, function returns 0.
Parameters: Returned value: Remarks: