I guess you could enumerate the active drivers in HKLM/Drivers/Active
looking for one that you like for WiFi. WiFi is not a global thing. You
could have two dozen WiFi adapters on some device, so there's no
IsWiFiActive() call. Why do you care? Generally, applications should
ignore the transport mechanism and just make a connection to the network and
use it, ignoring the media being used to do that...
I have a not very clean solution ;-( but it works if you don't have
others network connections :
You can use SNAPI with the SystemProperty ConnectionsNetworkCount.
Check the state of this value and if it is > 0, you have a network
connection.
(int)SystemState.GetValue(SystemProperty.ConnectionsNetworkCount)
Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.