Re: WMI

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Gabor

MĂłczĂĄr GĂĄbor wrote:
> Hi!
>
> I have already read "Using with WMI COM classes" topic, but I have no success...
> Is there anybody how can query WMI to get e.g. free memory from op.sys. class?
>
> I have tried the ExecQuery method, but it returns a SWbemObjectSet, and I do not know how to enumerate it...

I can not exactly remember the discussion in the "Using with WMI COM
classes"-thread. but lately I have added some sample code showing how to
use the "_NewEnum"-property from a collection, maybe this can help you
onwards.

Please take a look in the CVS head here:
http://cvs.sourceforge.net/viewcvs.py/jawinproject/jawin/demos/src/demos/

In the DemoWSH.java class.

Hope this helps you
Best Regards
Morten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.