|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
When the receiving application receives messages from a queue, the receiving application does the following:
- It opens a queue by name.
- It retrieves a message or peeks at a message.
- It sends required response messages.
Call MQReceiveMessageto read a message in a queue.
As with the desktop implementation, when reading messages, you can either peek at them without removing them from the queue, or retrieve the messages, which removes them from the queue.
Messages can be read synchronously or asynchronously.
Reading from a remote queue is not supported.