IEnumNetworkConnections::Next method

The Next method gets the next specified number of elements in the enumeration sequence.

Syntax

HRESULT Next(
  ULONG              celt,
  INetworkConnection **rgelt,
  ULONG              *pceltFetched
);

Parameters

celt

Number of elements requested.

rgelt

Pointer to a list of pointers returned by INetworkConnection.

pceltFetched

Pointer to the number of elements supplied. May be NULL if celt is one.

Return Value

Returns S_OK if the method succeeds. Otherwise, the method returns one of the following values.

Return code Description
S_FALSE
The number of elements skipped was not celt.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_POINTER
The ppElements parameter is not a valid pointer.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netlistmgr.h

See Also

IEnumNetworkConnections