<div class="content" name="Destination" uuid="3ba2d4e1-3401-44fb-ae24-ee6fe5a1e26a"><p>The Destination method is received by the server in an
RPC_REQUEST packet. In response, the server MUST return an IDispatch interface
pointer to an MSMQDestination object that represents 0 or more <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_c1a6400d-703b-4f9a-a74c-40f1487978d9" data-linktype="relative-path">queues</a> identified by the
represented Message.DestinationMultiQueueFormatName.</p><dl>
<dd>
<div><pre> [propget] HRESULT Destination(
   [out, retval] IDispatch** ppdestDestination
 );
</pre></div>
</dd></dl><p><b>ppdestDestination: </b>A pointer to a pointer to
an <a href="../ms-oaut/ac9c502b-ac1c-4202-8ad4-048ac98afcc9" data-linktype="relative-path">IDispatch</a>
interface that upon successful completion will contain an MSMQDestination
object representing the set of queues to send the <a href="3b7be3f7-651c-4f9c-930b-a9a7c4355ad8#gt_85c78cf0-1fb6-4e5d-85f5-a2e9f58a6b9e" data-linktype="relative-path">message</a> to.</p><p><b>Return Values: </b>The method MUST return S_OK
(0x00000000) on 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>Create a new MSMQDestination object instance.</p>
</li><li><p><span><span> 
</span></span>Set the <i>QueueFormatName</i> instance variable of the created
MSMQDestination object to the value of the represented
Message.DestinationMultiQueueFormatName.</p>
</li><li><p><span><span> 
</span></span>Set the <i>ppdestDestination</i> output parameter to a pointer to
an IDispatch4 interface for the newly created MSMQDestination object.</p>
</li></ul></div>