Share via


IEnumNetCfgComponent::Next method

The Next method retrieves the next specified number of INetCfgComponent interfaces in the enumeration sequence.

Syntax

HRESULT Next(
  [in]  ULONG            celt,
  [out] INetCfgComponent **ppElements,
  [out] ULONG            *pceltFetched
);

Parameters

  • celt [in]
    Specifies the number of INetCfgComponent interfaces requested.

  • ppElements [out]
    Pointer to a buffer that receives a pointer to the requested INetCfgComponent interfaces.

  • pceltFetched [out]
    Pointer to a variable that receives the number of INetCfgComponent interfaces actually supplied. May be NULL if celt is 1.

Return value

Returns one of the following values:

Return code Description
S_OK

The method returned celt number of elements.

S_FALSE

The number of elements remaining in the sequence was less than celt.

E_POINTER

The ppElements parameter is not a valid pointer.

E_OUTOFMEMORY

Insufficient memory exists to perform the operation.

 

Requirements

Target platform

Desktop

Header

Netcfgx.h (include Netcfgx.h)

See also

INetCfgComponent

 

 

Send comments about this topic to Microsoft