Reputation: 62554
how I can check if in my Windows mobile program there is WIFI connection ?
(I dont want to use try & catch for any action)
I work with Windows mobile 2005, FW 3.5, WS2008
thank's in advance
Upvotes: 2
Views: 2344
Reputation: 273621
The Microsoft.WindowsMobile.Status namespace has an extensive set of information items. Now WiFi isn't directly mentioned (Bluetooth and cellualr are) but you can check for 'Any' network connection with SystemState.ConnectionsCount and SystemState.ConnectionsDescriptions.
For more precision, check the OpenNetCF library (as usual).
Upvotes: 3