adapter connected?

Good day!
I've using opennetcf got all the available network adapters on my device by using the code below. I now need to know how I can get the conencted status of each one. Basicly determine wheter the adapter is connected. (Like if Active Sync/WiFi/GPRS is connected)
How do I do this

AdapterCollection ac = Networking.GetAdapters();
foreach (Adapter a in ac)
{
if(a.IsWireless && !a.SignalStrength.Equals(0) && a.Type == AdapterType.Ethernet)
{
MessageBox.Show("WiFi card!");
}
else if(!a.IsWireless)
{
MessageBox.Show("GPRS or ActiveSync" + a.CurrentIpAddress);
}
}

Thanks,
martin



Answer this question

adapter connected?