Gold
Gold

Reputation: 62554

WindowsMobile - How to check if there is WIFI connection?

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

Answers (1)

Henk Holterman
Henk Holterman

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

Related Questions