Gets a message from a message port.
Item GetMsg( Item mp )
This procedure gets the first message in the message queue for the specified message port and removes the message from the queue.
The procedure returns the item number of the first message in the message queue or an error code (a negative value) if an error occurs. Possible error codes include the following:
SWI implemented in kernel folio V20.
DeleteMsg
(), GetThisMsg(), ReplyMsg(), ReplySmallMsg(), SendMsg(), SendSmallMsg(), WaitPort()