问题背景:客户端是PDA,服务器端是CE,当客户端开机时,PDA自动检测网络是否通,先检测Internet是否通,如果不通则检测蓝牙,GPRS等其他网络通讯。如果都不通,则提示用户“正在试图建立连接,请稍候!”,这样每过10秒则自动检测一次网络是否通。问题:可是实现检测Internet是否开通,但是蓝牙和GPRS等其他通讯怎么检测???Internet检测:[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState( out int connectionDescription, int reservedValue ) ;
private bool IsConnected()
{
int I = 0;
bool state = InternetGetConnectedState(out I,0);
return state;
}请大家帮忙~!! 谢谢
private extern static bool InternetGetConnectedState( out int connectionDescription, int reservedValue ) ;
private bool IsConnected()
{
int I = 0;
bool state = InternetGetConnectedState(out I,0);
return state;
}请大家帮忙~!! 谢谢
Also you can use the Connection Manager to check for a connection. See the CMHELPER MFC sample in the Pocket PC SDK.
可以给一些例子吗?Pocket PC 2002 SDK 是一些文字说明
The IsAvailable function checks for a connection by determining whether a connection to the Internet or a corporate network.
corporate network包括蓝牙,GPRS等其他网络通讯吗?
望能多指教 谢谢!~