osMessagePeek() function
Receive an item from a queue without removing the item from the queue.
Arguments
queue_id
message queue ID obtained with osMessageCreate.
millisec
timeout value or 0 in case of no time-out.
Return value
event information that includes status code.