문제

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

도움이 되었습니까?

해결책

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

다른 팁

In which version of PocketPC are you working?

Because I have used Microsoft.WindowsMobile.Status namespace on Windows Mobile Standard and Windows Mobile Professional (PPC).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top