Re: WMI / NameSpace / Providers

Tech-Archive recommends: Fix windows errors by optimizing your registry



Indeed, Sam, you have been a great help and you have helped me plenty. As for
your question, yes, I looked and still am looking at the _Win32Provider
class. I do have one question and perhaps you can help me with that also:

I am referring to the SDK Documentation - Topic: Browsing the WMI Schema
[.Net Framework Developer's Guide], there's a query in the function private
void AddClassesToList() which reads as: WqlObjectQuery ("SELECT * FROM
meta_class").

I am trying to find the various columns that the * denotes - can you please
tell me how I may find this one out. [If you will recall, from my earlier
thread about the DB structure, this is the reason, I want to 'really'
understand and not just use some WQL. Why do I need to know this. For
instance, I want to list the classes, which it does - some 1100 classes or
more. I want only those listed which have Win32_ as the column values.

I hope I am clear and that you can help me, in addition to all the help you
have been. Thank you so very much again.

kishan

"Sam Hobbs" wrote:

> I don't know if I can help anymore than what I have.
>
> Did you look at the "__Win32Provider" class?
>
>
> "Kishanb" <Kishanb@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:06C57474-0862-40D6-914D-AD03690E0913@xxxxxxxxxxxxxxxx
> > Hello Sam:
> >
> > Greetings and thanks. I really appreciate your help in this matter.
> >
> > As suggested by you, I Installed the SDK and am purusing the
> > Documentation.
> >
> > As for your qs about using WBEMTest, yes, I have used it.
> >
> > WHat I am trying to do is develop a small WebPage(s) application.
> > Visualize,
> > if you will, 3 list boxes - lb1, lb2 and lb3. The application will not be
> > doing any 'Instrumentation'; at least at this time.
> >
> > The first list box will have the Providers from the root\cimv2 namespace.
> > I
> > do not need to see or capture all the providers [for e.g Active
> > Directory,
> > which is a Provider but from a different namespace, root\directory\ldap
> > and
> > so on.] Now, I want to know what SQL / WQL I need to write to capture this
> > info to populate my lb1. If I can do this, I can say I am well on my way
> > to
> > completing my tasks in terms of populating the lb2 and lb3. Just so I am
> > clear, for any item selectedin lb1, will show the corresponding objects in
> > the lb2. For the item selected in lb2, similarly, will populate the class
> > items in the lb3.
> >
> > I hope i make myself clear now. In my view, these should be fairly
> > straight-forward queries that can be created and executed ina C# program
> > to
> > populate the various listboxes. However, I am hitting a road bump!
> >
> > Again, thanks for your reading, patience and help!
> >
> > "Sam Hobbs" wrote:
> >
> >> I don't know what you mean by "cimv2 DB structure". I think what you need
> >> is
> >> the WMI SDK documentation. Do you have the Windows Platform SDK
> >> installed?
> >> The WMI documentation is included with the Platform SDK documentation.
> >> You
> >> should have it installed in your system locally. An online copy of the
> >> WMI
> >> documentation is at:
> >>
> >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp
> >>
> >> I am not sure but I think you can use the "__Win32Provider" class.
> >>
> >> Are you familiar with the "WBEMTest" tool? I am not sure where it comes
> >> from; I think it is provided with the WMI SDK which is part of the
> >> Platform
> >> SDK. Using WBEMTest, click on the "Connect" button and connect to
> >> "root\cimv2". Then click on the "Enum Instances" button and for the
> >> superclass name enter "__Win32Provider". That will show you the results
> >> of
> >> queryihng that class. Also, if you click on the "Query" button, enter
> >> something such as "select * from __Win32Provider" to get the same
> >> results.
> >> If that select is the type of thing that you are looking for, then it is
> >> all
> >> in the documentation.
> >>
> >>
> >> "Kishanb" <Kishanb@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:B92B4EFA-3C97-40EC-8BF4-6F0177757F7B@xxxxxxxxxxxxxxxx
> >> > Hello All & Greetings.
> >> >
> >> > Can someone please help me with writing a query to populate a listbox
> >> > with
> >> > the providers in the root\cimv2 namespace, please. Even just the query
> >> > would
> >> > be helpful - since I do not have the cimv2 DB structure.
> >> >
> >> > thanks,
> >> >
> >> > RKB
> >> > email also: cansciences@xxxxxxxxx
> >>
> >>
> >>
>
>
>
.


Quantcast