There is no WaitMessageTimeout function,
but you can create your own with the assistance of
the MsgWaitForMultipleObjects function.
To wait for a message with timeout, we use
in a vacuous sense:
You pass it a list of objects you want to wait for,
as well as a timeout and a set of queue states,
asking that the ...