Locating Queue Examples
To locate public queues, the application must query the directory service for all queues with a specific set of queue properties. The applications must specify what queue properties should be used as the search criteria for the query and, if function calls are being made, what queue properties will be returned in the query results. (When using COM components, all the queue properties that are stored in an MSMQQueueInfo object are returned.)
A list of the path names of all the private queues registered on a specific computer is returned by the PROPID_MGMT_MSMQ_PRIVATEQ property and its COM equivalent MSMQApplication.PrivateQueues (introduced in MSMQ 3.0).
The following examples show how to locate a collection of public queues with specific properties and to obtain a list of all the private queues on a specific computer.
Locating a collection of public queues based on the service type GUID or queue label
Obtaining a list of all the private queues on a specific computer