Share via


Next

Applies To: Windows 8, Windows 8.1

Returns an array that contains the specified number of elements.

HRESULT Next
  ([in] ULONG celt,
  [out, size_is(celt), length_is(*pCeltFetched)] IProfile** prgVar,
  [out] ULONG* pCeltFetched)
;

Parameters

  • celt
    [in] The number of elements to return.
  • prgVar
    [out] An array of at least the size of celt, to contain the elements.
  • pCeltFetched
    [out] A pointer to the number of elements returned in rgVar, or NULL.

Return Value

The following table describes possible return values.

Return Value Description

S_OK

The function successfully returned the array.

S_FALSE

The number of elements returned is less then celt.

E_POINTER

Indicates an invalid pointer.

See Also

Reference

IEnumProfile