Variant[] vs = {new Variant(query)};
Variant vCollection = axWMI.invoke("ExecQuery", vs);
//Our result is a collection, so we need to work though the.
EnumVariant enumVariant = new EnumVariant(vCollection.toDispatch());
Dispatch item = null;
while (enumVariant.hasMoreElements()) {
enumVariant.nextElement();
//Dispatch.call returns a Variant which we can convert to a java form.
String BytesReceivedPerSec = Dispatch.call(item,"BytesReceivedPerSec").toString();
String BytesSentPerSec = Dispatch.call(item,"BytesSentPerSec").toString();