IEnumNetworkConnections::Next method (netlistmgr.h)

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

Syntax

HRESULT Next(
  [in]  ULONG              celt,
  [out] INetworkConnection **rgelt,
  [out] ULONG              *pceltFetched
);

Parameters

[in] celt

Number of elements requested.

[out] rgelt

Pointer to a list of pointers returned by INetworkConnection.

[out] 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

Requirement Value
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