[Mono-dev] get mac address using system.management
yosi100 at gmail.com
Mon Apr 13 13:50:39 EDT 2009
i used to get mac address of Ethernet adapter under windows, using the
Dim mc As System.Management.ManagementClass
Dim mo As ManagementObject
mc = New ManagementClass("Win32_NetworkAdapterConfiguration")
Dim moc As ManagementObjectCollection = mc.GetInstances()
For Each mo In moc
If mo.Item("IPEnabled") = True Then
ListBox1.Items.Add("MAC address " &
now i have to do the same under Linux system.
now, its obvious i wont find "Win32_NetworkAdapterConfiguration" under
managementclass on Linux.
so, can anyone tell me what is the wright method of managementclass that
will let me get the network adapter properties?
or any other way i should use for linux system?
thnx in advance.
View this message in context: http://www.nabble.com/get-mac-address-using-system.management-tp23025958p23025958.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list