Share via


IEnumComponents::Next Method

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

Syntax

HRESULT Next(
  [in]   ULONG celt,
  [out]  IComponent **pprgelt,
  [out]  ULONG *pceltFetched
);

Parameters

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

  • pprgelt [out]
    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 Value

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

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IEnumComponents Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008