[DllImport("wininet.dll")]
    
private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue);
    
int flag;
    
string State = InternetGetConnectedState(out flag, 0).ToString();
posted on 2006-11-24 15:44  aiya  阅读(415)  评论(0)    收藏  举报