Windows API Reference

Microsoft Developer Network

IEnumConnections Interface

The IEnumConnections interface provides the standard methods for enumerating connections.

interface DECLSPEC_UUID("72AD0C90-28BD-11d0-9597-00C04FD91890")
IEnumConnections : public IUnknown
{
public:
    virtual HRESULT STDMETHODCALLTYPE Next( 
        ULONG cConnections,
        CONNECTDATA *rgConnections,
        ULONG *pcFetched) = 0;
    
    virtual HRESULT STDMETHODCALLTYPE Skip( 
        ULONG cConnections) = 0;
    
    virtual HRESULT STDMETHODCALLTYPE Reset( void) = 0;
    
    virtual HRESULT STDMETHODCALLTYPE Clone( 
        IEnumConnections **ppEnum) = 0;
    
};

Methods

Next

Retrieves a specified number of elements in the enumeration state.

Syntax

HRESULT Next( 
    ULONG cConnections,
    CONNECTDATA *rgConnections,
    ULONG *pcFetched
);
            

Parameters

Return Value

Returns one of the following values:

Remarks

Skip

Skips over the next specified element in the enumeration.

Syntax

HRESULT Skip( 
    ULONG cConnections
);
            

Parameters

Return Value

Reset

Resets the enumeration sequence to the beginning.

Syntax

HRESULT Reset( void);
            

Return Value

Clone

Creates a new enumerator that contains the same enumeration state as the current one.

Syntax

HRESULT Clone( 
    IEnumConnections **ppEnum
);
            

Parameters

Return Value

Remarks