/// <summary> /// Given an IEnumVariant interface, this method jumps to a specific /// item in the collection and extracts the result for that one item. /// </summary> private unsafe static bool GotoItem(Oleaut32.IEnumVariant iev, int index, IntPtr variantPtr) { uint celtFetched = 0; iev.Reset(); iev.Skip((uint)index); iev.Next(1, variantPtr, &celtFetched); return(celtFetched == 1); }
unsafe HRESULT Oleaut32.IEnumVariant.Next(uint celt, IntPtr rgVar, uint *pCeltFetched) => publicIEnumVariant.Next(celt, rgVar, pCeltFetched);