Re: Help for Win32_Service

Joel Carvalho <[email protected]> Mon, 26 Mar 2007 12:49:02 -0400
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Hello.

I've picked your code and started from there. I need to build an application
that retrieves data from WMI, and your code goes on that direction.
Well, now I got to the same some and have the same problem as you.

I've been doing a lot of search and research and I believe that to list the
content of the SWbemObjectSet is very complicated. I think we first need to
enumerate the content, and only after may use it as many objects. I've been
trying everything, even passing the argument "_newEnum" but it returns an
IUnknown and I don't know how to handle it. I also think that the solution
may require the use of IEnumVariant but I can't find a way to cast anything
to that class. That class also look a bit unfinished by Jawin developers...

Can someone help further? Please, I'm pulling hair from my head already! How
do we extract the results from SWbemObjectSet?

Thank you.