3.16.4.5.5 EnumConnections (Opnum 7)
The EnumConnections 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 [MSDN-EC], for the client to enumerate all the currently registered callback objects.
-
HRESULT EnumConnections( [out] IEnumConnections** ppEnum );
ppEnum: A pointer to an IEnumConnections interface pointer that upon successful completion will allow the user to enumerate all the currently registered callback objects.
Return Values: The method MUST return S_OK (0x00000000) on success or an implementation-specific error HRESULT on failure.<96>
When processing this call, the server MUST follow these guidelines:
If the ppEnum output parameter equals NULL:
Return E_POINTER (0x80000005), and take no further action.
If the server does not implement this method, return E_NOTIMPL (0x80004001) and take no further action.
Set the ppEnum output parameter to a pointer to an IEnumConnections interface for the MSMQEvent object instance. The ppEnum output parameter will enable enumeration of all the currently registered callback objects that exist in the ConnectionCollection instance variable.