Microsoft DirectX 9.0

IEnumComponents::Next

The Next method retrieves the next n elements in the collection.

Syntax

HRESULT Next(
  ULONG  celt,
  IComponent**  pprgelt,
  ULONG*  pceltFetched
);

Parameters

celt

[in] Variable of type ULONG that specifies the number of elements to retrieve.

pprgelt

[out, size_is(celt), length_is(pceltFetched)] Address of an array of IComponent interface pointers that will receive the retrieved Component objects.

pceltFetched

[out] Pointer to a variable of type ULONG that receives the number of elements actually retrieved.

Return Values

Returns S_OK if successful. If the method fails, error information can be retrieved using the standard COM IErrorInfo interface.

See Also