[Mono-dev] Using WMI
"Andrés G. Aragoneses"
knocte at gmail.com
Wed Jan 18 16:37:39 EST 2006
Hello.
I am using .NET2005 for developing an application. This application must
know the IP address of the localhost and this was done, some days ago,
by resolving the DNS of localhost. However, now I have needed to know
the netmask information of each IP address of each network interface
installed on the host.
I haven't found a better solution to do this apart from using WMI this way:
http://www.codeproject.com/csharp/ObaFindingIPInformation.asp
Is there a better solution?
If not: I haven't tested it yet, but it seems that WMI is incompatible
with Mono, however doing some searches I think I have seen that the
System.Management namespace is implemented.
If it is already implemented, I suppose that the query "SELECT * FROM
Win32_NetworkAdapterConfiguration WHERE IPEnabled = 'TRUE'" only works
in Win32, am I right?
If I am right about this or the WMI is not implemented at all, how can I
obtain this information in a multiplatform way (I am interested in
Linux, above all).
If WMI is not implemented at all, are there plans to support it in the
future? If yes, will it be portable in any way?
Thanks in advance,
Andrés G. Aragoneses
--
More information about the Mono-devel-list
mailing list