摘要: public partial class Form1 : Form {[DllImport("wininet.dll")]private extern static bool getInterState(out int conn, int val);public Form1(){InitializeComponent(); getNet(); } //判断当前是否连接入Internet网络 private void getNet() { int Out; if (getInterState(out Out, 0) == true) { label1.Text = " 阅读全文
posted @ 2012-03-20 17:10 Chaoa 阅读(345) 评论(0) 推荐(0) 编辑