Поделиться через


Creating Message Queues

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

Message Queuing provides a single process for creating all queues. The same calls are made to create public queues, private queues, and transactional queues.

Note

System queues, such as queue journals, computer journals, and dead-letter queues, can be created only by Message Queuing.

Specify a Path Name for the Queue

To create a queue, you must specify a path name for the queue. This path name is the only queue property necessary to create the queue. However, you can also specify other queue properties, such as the label of the queue. These properties are optional and are needed only if you want to modify the default behavior of the queue.

To create a queue, specify the path name in a call to the following function or COM method:

For information on See
Path names Queue Path Names
Optional queue properties that can be set when creating a queue Setting Queue Behavior
Example code for creating queues Creating Queue Examples