IEnumConnections::Next

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 once 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.

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 Values

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

OS Versions: Windows CE 3.0 and later.
Header: Ocidl.h, Ocidl.idl.
Link Library: Ole32.lib, Uuid.lib.

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.