摘要:
[DllImport("wininet.dll")]privateexternstaticboolInternetGetConnectedState(outintconn,intval);publicForm1(){InitializeComponent();}privatevoidbutton1_Click(objectsender,EventArgse){intOut;if(InternetGetConnectedState(outOut,0)==true){MessageBox.Show("Connected!");}else{MessageBox 阅读全文