다음을 통해 공유


Locating Queue Examples

 

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

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).

Code Examples

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.

Example Using
Locating a collection of public queues based on the service type GUID or queue label C++ Code Example: Locating a Queue

 C++ COM Code Example: Locating a Queue

 Visual Basic Code Example: Locating a Queue
Obtaining a list of all the private queues on a specific computer C/C++ Code Example: Obtaining a List of Private Queues