Requesting Acknowledgment Messages (COM) (Windows Embedded CE 6.0)
1/6/2010
To request acknowledgment messages, the sending application must indicate the acknowledgment level of the message and the administration queue where the acknowledgment message will be placed.
Acknowledgment messages are returned to the administration queue specified by MSMQMessage.AdminQueueInfo. This queue is maintained by the sending application. It is the sending application's responsibility to create the queue, to read the messages in the queue, and to perform whatever actions are required as a result of the type of acknowledgment message returned by Message Queuing.
Note
Each Message Queuing message can have no more than 4 MB of data.
To request acknowledgment messages
Declare two MSMQQueueInfo objects, an MSMQQueue object, and an MSMQMessage object.
Obtain an MSMQQueueInfo object for the administration queue.
You can do this by creating a queue, locating an existing queue, or by specifying the pathname of a queue and calling MSMQQueueInfo.Refresh.
Call MSMQQueueInfo.Open to open the destination queue.
Set the acknowledgment level and administration queue properties of the message.
(Optional) Set additional message properties.
Call MSMQMessage.Send to send the message to the destination queue.
Call MSMQQueue.Close to close the queue.
See Also
Concepts
Sending Messages to a Queue (COM)
MSMQ COM Support
Using the COM Components
MSMQ Security