IEnumConnectionPoints::Skip

HRESULT IEnumConnectionPoints::Skip([in] ULONG cConnections);

Instructs the enumerator to skip the next cConnections elements in the enumeration such that the next call to IEnumConnectionPoints::Next will not return those elements.

Argument

Type

Description

cConnections

ULONG

[in] Specifies the number of elements to skip in the enumeration.


Return Value

Meaning

S_OK

The number of elements skipped is cConnections.

S_FALSE

The enumerator skipped fewer than cConnections because there were not that many left in the list. The enumerator will, at this point, be positioned at the end of the list such that subsequent calls to Next (without an intervening Reset) will return zero elements.

E_INVALIDARG

The value of cConnections is zero, which is not valid.

E_UNEXPECTED

An unknown error occurred.