On Mon, 2014-03-03 at 17:37 +0000, Luke A. Guest wrote:
On Mon, 2014-03-03 at 09:15 +0100, Hans Leidekker wrote:
0009:trace:wbemprox:parse_query wql_parse returned 0 0009:trace:wbemprox:EnumWbemClassObject_create 0x32f858 0009:trace:wbemprox:EnumWbemClassObject_create returning iface 0x3cd6ea8 0009:trace:wbemprox:enum_class_object_Next 0x3cd6ea8, 10000, 20, 0x32f888, 0x32f864
...
Have I missed something here?
It's asking for 20 objects. The return value of EnumWbemClassObject::Next depends on whether the enumeration has ended but the first call will probably always return WBEM_S_NO_ERROR on Windows.
My understanding of that code was that it always returned 1 object no matter what the client was asking for as the api can always return less than what was asked for. If this is not right, then the wine code needs to return as many objects as possible, right?
Right, and if the client really expects WBEM_S_NO_ERROR then we'd need at least 20 instances of Win32_PNPEntity.