Retrieving a Queue's Properties

After a queue is created, its properties can be retrieved by calling MQGetQueueProperties. The properties of public queues can be retrieved at any time; however, you can retrieve the properties of private queues only if they are located on your local computer.

Note  Properties of public queues can also be retrieved by doing a query on Active Directory. For details performing a query, see Locating a Public Queue.

In most cases, any application can retrieve the properties of a queue. 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 on setting a queue's access rights, see Setting Access Control Security for a Queue.

For an example of… See
Retrieving the authentication level of the queue Retrieving PROPID_Q_AUTHENTICATE
Retrieving the priority level of the queue Retrieving PROPID_Q_BASEPRIORITY
Retrieving the time when the queue was created Retrieving PROPID_Q_CREATE_TIME
Retrieving the identifier of the queue Retrieving PROPID_Q_INSTANCE
Retrieve the journaling level of the queue Retrieving PROPID_Q_JOURNAL
Retrieving the maximum size of the journal queue Retrieving PROPID_Q_JOURNAL_QUOTA
Retrieving the label of the queue Retrieving PROPID_Q_LABEL
Retrieving the time when the queue's properties were last modified Retrieving PROPID_Q_MODIFY_TIME
Retrieving the pathname of the queue Retrieving PROPID_Q_PATHNAME
Retrieving the privacy level of the queue Retrieving PROPID_Q_PRIV_LEVEL
Retrieving the maximum size of the queue Retrieving PROPID_Q_QUOTA.
Retrieving the transaction level of the queue Retrieving PROPID_Q_TRANSACTION
Retrieving the queue's service type Retrieving PROPID_Q_TYPE