Re: IsNetworkAlive function
Hi.
Why don't u use system.Net.Dns.GetHostName ?
Or you can use inthehand classes http://inthehand.com/
or you can construct your own API with and dll it for pocket pc
Re: IsNetworkAlive function
Good question.
I try it.
Teo
Re: IsNetworkAlive function
Take a look here - excellent video on how to handle it
Re: IsNetworkAlive function
Ok i have made a post on codebank that will try to simulate The IsNetworkAlive api. It gives info on the adapter and if it is connected.
Just use my link in the signature.
Re: IsNetworkAlive function
Never mind,
Just read that you are using Windows CE, suggested something for Windows Mobile. :)
Re: IsNetworkAlive function
Hello,
There is the SNAPI that has a classes called WIFIConnected, WIFIconnecting, and WIFIAvailable.
I think this is all you need.
Hope this helps,
Steve
Re: IsNetworkAlive function
This is what I was going to suggest, but I thought that was only for Windows Mobile, not for Windows CE.
Can you confirm?
Thanks,
Gary
Re: IsNetworkAlive function
Hello,
Thanks for the suggestions and sorry for the late reply.
Everything works fine on windows mobile but on CE it doesn't work as expected.
First of all SNAPI WIFIConnected, WIFIconnecting, and WIFIAvailable are not supported on CE. I used the OpenNETCF and the example found here
http://msdn.microsoft.com/en-us/library/aa446491.aspx
I tried the system.Net.Dns.GetHostName. I tried it when the device was in range and had connection and a network address and without.
In both cases it takes very long to reply. About 35 seconds.
The same result was when I tried intheHand component. It takes over 30 seconds to reply. I used the ping.send command. You can set the timeout parameter also.
I tried intheHand component on a Windows mobile device. It works excellent.
I think i've tried everything on the CE but i get the same result every time. It takes over 30 seconds to reply.
I've installed compact framework sp2 also.
Any idea would be appreciated.
Thank you.
Teo