<div class="content"><p>The <b>EnumConnections</b> method is received by the server
in an RPC_REQUEST packet. In response, the server MUST return a pointer to an
IEnumConnections interface pointer, as defined in <a href="https://go.microsoft.com/fwlink/?LinkId=128914" data-linktype="external">[MSDN-EC]</a>, for the
client to enumerate all the currently registered callback objects.</p><dl>
<dd>
<div><pre> HRESULT EnumConnections(
   [out] IEnumConnections** ppEnum
 );
</pre></div>
</dd></dl><p><b>ppEnum: </b>A pointer to an IEnumConnections
interface pointer that upon successful completion will allow the user to
enumerate all the currently registered callback objects.</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.<a id="Appendix_A_Target_96"></a><a aria-label="Product behavior note 96" href="71c359c3-e9ec-4fe6-a101-aab1eabecdcf#Appendix_A_96" data-linktype="relative-path">&lt;96&gt;</a></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>ppEnum</i> output parameter equals NULL:</p>
<ul><li><p><span><span>  </span></span>Return
E_POINTER (0x80000005), and take no further action.</p>
</li></ul></li><li><p><span><span> 
</span></span>If the server does not implement this method, return E_NOTIMPL
(0x80004001) and take no further action.</p>
</li><li><p><span><span> 
</span></span>Set the <i>ppEnum</i> output parameter to a pointer to an
IEnumConnections interface for the <a href="6102da49-1a16-4862-a4d1-ad092c5101a4" data-linktype="relative-path">MSMQEvent</a> object instance.
The <i>ppEnum</i> output parameter will enable enumeration of all the currently
registered callback objects that exist in the <i>ConnectionCollection</i>
instance variable.</p>
</li></ul></div>