Partilhar via


Specifying Queue Properties to Retrieve

 

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

The column structure MQCOLUMNSET is used to specify which queue properties Message Queuing will retrieve when it finds a queue. This structure contains a count of the properties to be retrieved and a pointer to a QUEUEPROPID array that contains the set of properties to be retrieved.

Note

You cannot retrieve the DNS path name of a queue because the DNS path name is not stored in the directory service.

The following example code shows a QUEUEPROPID and MQCOULMNSET structure that specifies two properties, the label and path name of the queue.

QUEUEPROPID   aPropId[MAX_PROP]  
MQCOLUMNSET   Column;  
DWORD         cColumn = 0;  
  
aPropId[cColumn] = PROPID_Q_LABEL;  
cColumn++;  
  
aPropId[cColumn] = PROPID_Q_PATHNAME;  
cColumn++;  
  
Column.cCol = cColumn;  
Column.aCol = aqPropId;  

More Information

For information on See
The structures used to specify the search criteria Specifying Search Criteria
Example code for locating queues Locating Queue Examples