wbemprox: Implement IEnumWbemClassObject::Skip.

This commit is contained in:
Hans Leidekker 2012-06-18 09:31:00 +02:00 committed by Alexandre Julliard
parent 0f936f49ca
commit bb80d7db9a
1 changed files with 14 additions and 2 deletions

View File

@ -152,8 +152,20 @@ static HRESULT WINAPI enum_class_object_Skip(
LONG lTimeout,
ULONG nCount )
{
FIXME("%p, %d, %u\n", iface, lTimeout, nCount);
return E_NOTIMPL;
struct enum_class_object *ec = impl_from_IEnumWbemClassObject( iface );
struct view *view = ec->query->view;
TRACE("%p, %d, %u\n", iface, lTimeout, nCount);
if (lTimeout != WBEM_INFINITE) FIXME("timeout not supported\n");
if (view->index + nCount >= view->count)
{
view->index = view->count - 1;
return WBEM_S_FALSE;
}
view->index += nCount;
return WBEM_S_NO_ERROR;
}
static const IEnumWbemClassObjectVtbl enum_class_object_vtbl =