osdMessageQueueReceive() attempts to receive a message.
messageQueue specifies the handle for the message queue. The bytes
taken off the message queue are placed in data and the number of
bytes received is placed in the integer to which length points. Any
errors encountered are placed in error.