Share via


MSMQ COM Support

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Message Queuing provides a set of COM objects for developing Message Queuing applications using COM development tools.

The Message Queuing COM objects provide the most common Message Queuing API functionalities needed for developing Message Queuing applications. These include queue lookup, queue management, message management, and queue administration.

MSMQ COM Object Model

The object model described in the following illustrations provides functionality for sending messages to queues, reading messages in queues, as well as additional queue management functionality. The guiding principle in designing the Message Queuing COM objects is object model simplicity.

The following illustration shows an object sending messages to queues.

Aa926129.9d5e8515-d1a1-4699-ab1d-e473f199d2c7(en-us,MSDN.10).gif

Objects Used to Read Messages

The following illustration shows an object that reads messages from a destination queue. (Note that the MSMQDestination object used to send messages cannot be used when reading messages from a queue.)

Aa926129.8e3260cf-9a46-417e-a389-08d322744579(en-us,MSDN.10).gif

Objects Used to Locate Queues

The following objects can be used to locate an existing public queue for sending messages or reading messages. These objects can be used to obtain one or more MSMQQueueInfo objects that can then be used to open the queue for sending or reading message.

Aa926129.05f687c6-4e26-4f39-ab3e-5f10257b3501(en-us,MSDN.10).gif

Application Object

Message Queuing provides a single COM application object that can be used to monitor Message Queuing on a computer, retrieve the machine name and machine identifier of a computer, and register internal and external certificates used to authenticate messages.

See Also

Concepts

Using the COM Components
Application Installation of MSMQ
Administration
Debugging MSMQ Installations
MSMQ Security

Other Resources

Message Queuing
MSMQ Samples