摘要:
1. 方法定义 [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState( out int connectionDescription, int reservedValue ) ;2. 方法说明 参数: connectionDescription : 连接说明 reservedValue : 保留值 返回值: true: On Line false: Off Line 3. 调用方法 a. 你必须在你的code里引用System.Runtime.InteropService 阅读全文
摘要:
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace WindowsFormsApplicationWork{ public partial class Form1 : Form { public Form1() { Initializ 阅读全文