Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


(Introduced in MSMQ 3.0.) The PrivateQueues property of the MSMQApplication object returns the path names of all private queues registered on the computer.

Data type:

Variant (array of variants)

Run-time access:


Property PrivateQueues As Variant

Property Value

A Variant containing an array of variants containing strings that specify path names.

Error Codes

For information on return codes, see Message Queuing Error and Information Codes.


Including the MSMQApplication object in the code syntax is optional because this object is defined as the application object, whose methods and properties are globally available.

This property (by default) applies to the local computer. To reference another computer, set MSMQApplication.Machine to another computer and then look at this property.

In C++ COM applications, you must use a smart pointer to the IMSMQApplication3 interface to expose the PrivateQueues property.

Equivalent API Function Property

When using API functions, the equivalent property is PROPID_MGMT_MSMQ_PRIVATEQ.


Windows NT/2000/XP: Included in Windows XP and Windows Server 2003.

Windows 95/98/Me: Unsupported.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib.

See Also

© 2015 Microsoft