IEnumNetworks::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] INetwork **rgelt,
  [out] ULONG    *pceltFetched
);

Parameters

[in] celt

Number of elements requested in the enumeration.

[out] rgelt

Pointer to the enumerated list of pointers returned by INetwork.

[out] pceltFetched

Pointer to the number of elements returned.

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 returned was not equal to 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

IEnumNetworks