IEnumVARIANT::Skip Method
Attempts to skip over the next celt elements in the enumeration sequence.
HRESULT Skip( unsigned long celt );
The following code implements IEnumVariant::Skip. A complete example implementation of the IEnumVariant interface is available in the COM Fundamentals Lines sample (Enumvar.cpp).
STDMETHODIMP
CEnumVariant::Skip(ULONG cElements)
{
m_lCurrent += cElements;
if (m_lCurrent > (long)(m_lLBound+m_cElements))
{
m_lCurrent = m_lLBound+m_cElements;
return S_FALSE;
}
else return NOERROR;
}
Show: