Connecting to Internet on Windows Mobile with C#
When you start Internet Explorer on Windows Mobile and you don't have connection yet, Explorer automatically starts connecting to the Internet. I would like to do the same thing in C#.
I want my application to detect if I am connected to the Internet. If i am not then it should connected itself automati开发者_Go百科cally. How can I do this?
You need to exercise your P/Invoke muscles with the the Windows Mobile Connection Manager. Not hard at all.
Use the SystemState objects to determine your current connection status and the ConnectionManager if you'd like to connect.
精彩评论