Important:
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.
A version of this page is also available for
4/8/2010

When the receiving application receives messages from a queue, the receiving application does the following:

  1. It opens a queue by name.

  2. It retrieves a message or peeks at a message.

  3. 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.

See Also