After a queue is created, its properties can be retrieved at any time by calling MQGetQueueProperties. All queue properties can be retrieved; however, you can only retrieve the properties of private queues if they are located on your local computer.
Note Properties of public queues can also be retrieved by doing a query on the MQIS. For details, see Locating a Public Queue.
In most cases, any application can retrieve a queue's properties. However, if MQ_ERROR_ACCESS_DENIED is returned to the MQGetQueueProperties call, the queue's access control is blocking the application from retrieving its properties. For information setting a queue's access rights, see Setting Access Control Security for a Queue.
For more information about setting properties, see Setting a Queue's Properties Using API Functions.
All properties of a queue can be retrieved. However, you can only retrieve the properties of a private queue if it is located on your local machine.
PROPID_Q_BASEPRIORITY (public queues only)
PROPID_Q_INSTANCE (public queues only)