Hi
My software has to get some information about motherboard (baseboard). It is possible to do that through WMI API which is encapsulated by System.Management namespace (as I understand). I use WMI class win32_baseboard to accomplish it and get exceptions. That's probably because of the fact that I am not good at WMI
The following code works perfectly
ManagementObject wmi = new ManagementObject("win32_networkadapter.deviceid=\"1\"")
wmi.Get()
object val = wmi.Properties["[any property]"].Value
But this code throws an exception
ManagementObject wmi = new ManagementObject("win32_baseboard=\"Base Board\"")
wmi.Get(); <---- exception gets thrown her
object val = wmi.Properties["[some property]"].Value
Excuse me if this question is not for this newsgroup
Thank you
Mikhail Golovnykh
Mikhail Golovnykh - 23 Jan 2004 03:51 GMT
Sorry,
I fixed everything. It works!
I was supposed to use Management.ManagementClass.GetInstances()
Mikhail Golovnykh