Tool to help using WMI (Windows Management Instrumentation)

Windows Management Instrumentation, WMI, is used to extract information from windows about hardware.  It keeps track of pretty much everything on and in your computer.  I have not even tried looking at this in Clarion, so, sorry, no Clarion code examples.  I plan on messing with this using either or C# rather than C++  and I think I'll stick with VB.NET.

Microsoft has a very cool little utility, called WMI Code Creator

Here you can select what you want to look at and then it generates the code you need for it.  You can download it here.  

Not just that, you can click on the "Execute Code" button and it executes the code you have in the "generated code" text box so you can immediately see what the selected class in the selected namespace would return.  

If you click the "Search for Property Values" button you get a list of the items in the results that have the selected property.  

Hope this helps someone:)

Arnor Baldvinsson
Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk