IEnumBstr::Next method (tapi3if.h)

The Next method gets the next specified number of elements in the enumeration sequence. This method is hidden from Visual Basic and scripting languages.

Syntax

HRESULT Next(
  [in]      ULONG celt,
  [out]     BSTR  *ppStrings,
  [in, out] ULONG *pceltFetched
);

Parameters

[in] celt

Number of elements requested.

[out] ppStrings

Pointer to the list of BSTR pointers returned.

[in, out] pceltFetched

Pointer to number of elements actually supplied. May be NULL if celt is one.

Return value

This method can return one of these values.

Return code Description
S_OK
Method returned celt number of elements.
S_FALSE
Number of elements remaining was less than celt.
E_POINTER
The ppStrings parameter is not a valid pointer.

Remarks

The application must use SysFreeString to free the memory allocated for the ppStrings parameter.

Requirements

Requirement Value
Target Platform Windows
Header tapi3if.h (include Tapi3.h)
Library Uuid.lib
DLL Tapi3.dll