<div class="content" name="PrivateQueues" uuid="7c28a1fc-2e4c-46ad-ab4f-cb4402f6f5d6"><p>The PrivateQueues method is received by the server in an
RPC_REQUEST packet. In response, the server MUST return an array of strings
that contain the path names of all the represented <a href="../ms-mqdmpr/9adb2d90-c63b-43c7-9b9c-804ab96a57d5" data-linktype="relative-path">QueueManager</a>.QueueCollection.Queues,
where <a href="../ms-mqdmpr/2e026a09-999e-478f-8c4c-5344b661e579" data-linktype="relative-path">Queue</a>.<a href="2f388dcb-36be-44ea-95e7-7e9078c50cc2" data-linktype="relative-path">QueueType</a> is equal to
Private.</p><dl>
<dd>
<div><pre> [propget] HRESULT PrivateQueues(
   [out, retval] VARIANT* pvPrivateQueues
 );
</pre></div>
</dd></dl><p><b>pvPrivateQueues: </b>A pointer to a <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_a3af3eaf-64b7-499b-a95f-193cd4c27812" data-linktype="relative-path">VARIANT</a> that when
successfully completed, contains an array of zero or more strings (VT_ARRAY |
VT_BSTR) that specify the path names of all the represented
QueueManager.QueueCollection.Queues, where Queue.QueueType is equal to Private.</p><p><b>Return Values: </b>The method MUST return S_OK
(0x00000000) to indicate success or an implementation-specific error <a href="../ms-dtyp/a9046ed2-bfb2-4d56-a719-2824afce59ac" data-linktype="relative-path">HRESULT</a>
on failure.</p><p>When processing this call, the <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a> MUST follow these
guidelines:</p><ul><li><p><span><span> 
</span></span>If the <i>ComputerName</i> instance variable is NULL:</p>
<ul><li><p><span><span>  </span></span>Identify
all the local QueueManager.QueueCollection.Queues, where Queue.QueueType is
equal to Private.</p>
</li><li><p><span><span>  </span></span>Set
the <i>pvPrivateQueues</i> output variable to an array that contains the <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_78c4af57-f564-4aa9-a40d-f54ea6bd8766" data-linktype="relative-path">path names</a> that specify all
the identified Queues.</p>
</li></ul></li><li><p><span><span> 
</span></span>Else:</p>
<ul><li><p><span><span>  </span></span>The
server MUST generate a QMMgmt Get Info event with the following inputs:</p>
<ul><li><p><span><span> 
</span></span>iPropID = PROPID_MGMT_MSMQ_PRIVATEQ</p>
</li></ul></li><li><p><span><span>  </span></span>If
the <i>rStatus</i> return value is not equal to MQ_OK (0x00000000), the server
MUST return <i>rStatus</i> and MUST take no further action. Otherwise, the <i>pvPrivateQueues</i>
output variable MUST be set to the value of the returned <i>rPropVar</i>.</p>
</li></ul></li></ul></div>