wbemprox: Implement IEnumWbemClassObject::Skip.
This commit is contained in:
parent
0f936f49ca
commit
bb80d7db9a
|
@ -152,8 +152,20 @@ static HRESULT WINAPI enum_class_object_Skip(
|
||||||
LONG lTimeout,
|
LONG lTimeout,
|
||||||
ULONG nCount )
|
ULONG nCount )
|
||||||
{
|
{
|
||||||
FIXME("%p, %d, %u\n", iface, lTimeout, nCount);
|
struct enum_class_object *ec = impl_from_IEnumWbemClassObject( iface );
|
||||||
return E_NOTIMPL;
|
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 =
|
static const IEnumWbemClassObjectVtbl enum_class_object_vtbl =
|
||||||
|
|
Loading…
Reference in New Issue