Search code examples
.netwindows-mobilewifipocketpc

Detect wifi connection on a Pocket PC


I am trying to programmatically detect if a Pocket PC has a wifi connection or not. Detecting any connection would probably work, as wifi will be the only possibility.

Once a connection is detected data will be downloaded from a web service.

I am developing in VB but anything in C# is fine.

On Windows Mobile there is the SystemState class from Microsoft.WindowsMobile.Status which would work, but this is not available on Pocket PC. An equivalent would be excellent but I can't find one.

There may well be a manufactures API that could be used, but I would prefer not to be tied to a manufacturer. I am also not allowed to use anything third party, which rules out getting an off the shelf solution.

Thanks for any suggestions


Solution

  • Send a UDP packet to somwhere where it will do no harm and check if it errors out