Hi,
I'm thinking of using the WMI.DLL to build some sort of WMI Query Builder but I can't figure out how to list all of the classes within the WMI.WMIClasses.Win32 namespace.
Can someone point me in the right direction?
Printable View
Hi,
I'm thinking of using the WMI.DLL to build some sort of WMI Query Builder but I can't figure out how to list all of the classes within the WMI.WMIClasses.Win32 namespace.
Can someone point me in the right direction?
Are you referring to the WMI dll I made that is in the WMI codebank submission? You can try using reflection in order to do it... a little sample is below that shows the names of all the types:
VB Code:
'assuming wmi.dll is in the application directory Dim MyAssembly As System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom(Application.StartupPath & "\WMI.dll") For Each mType As Type In MyAssembly.GetTypes() Messagebox.Show(mType.Name) Next