Share via


IEnumConnections::Next

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method numerates the next cConnections elements (for example, CONNECTDATA structures) in the enumerator's list, returning them in rgpcd along with the actual number of enumerated elements in pcFetched.

The caller is responsible for calling CONNECTDATA.pUnk->Release for each element in the array when this method returns successfully.

If cConnections is greater than one, the caller must also pass a non-NULL pointer to pcFetched to get the number of pointers it has to release.

Syntax

HRESULT Next(
  ULONG cConnections, 
  CONNECTDATA** rgpcd, 
  ULONG* pcFetched     
);

Parameters

  • cConnections
    [in] Number of CONNECTDATA structures returned in rgpcd.
  • rgpcd
    [out] Array to receive enumerated CONNECTDATA structures.
  • pcFetched
    [out] Pointer to actual number of CONNECTDATA structures.

Return Value

S_OK if the number of elements supplied is cConnections; S_FALSE otherwise.

Remarks

E_NOTIMPL is not allowed as a return value.

If an error value is returned, no entries in the rgpcd array are valid on exit and require no release.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header ocidl.h, ocidl.idl
Library ole32.lib, uuid.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Windows Mobile Version 5.0 and later