Partager via


Receiving Messages from a Queue (Windows Embedded CE 6.0)

1/6/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 MQReceiveMessage to 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

Concepts

MSMQ Application Development
Creating Queues
Sending Messages to a Queue
Connecting to Another Device
MSMQ COM Support
MSMQ Security