怎样用C#得知系统当前是否处于internet链结状态?请给出关键代码.当然最好是举一个简单例子.
解决方案 »
- ASP.NET 需要实现鼠标选中就复制
- MSMQ死信队列的使用(SOS)
- "求解"画图问题
- DataGridView 扩展问题
- (家产2分全给出)如何将datagridview的修改更新的数据库(datagridview是两个表的联合检索)
- vs2005打包问题
- 数据问题,大家帮忙
- 发现一个电子图书的好地方
- 如何在C#中的菜单中加入“窗体控制”,即有所有打开窗体的列表,还有排列,平铺等功能
- 求助:我的VS.net源代码管理中的子菜单全部无效?不知什么条件下才能激活呢?谢谢!!!
- 有WEBFORM中,如何让控件用MOUSE拖动,改变位置和大小?
- 一次性删除datagrid里面选中的所有数据,怎么做?
using System.Runtime ;
using System.Runtime.InteropServices ;
public class InternetCS
{//Creating the extern function...
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState( out int Description, int ReservedValue ) ;//Creating a function that uses the API function...
public static bool IsConnectedToInternet( )
{int Desc ;
return InternetGetConnectedState( out Desc, 0 ) ;}}
不过要想非常精确的获得网线水晶头的插拔需要从底层网卡驱动获得
To:oyljerry
"不过要想非常精确的获得网线水晶头的插拔需要从底层网卡驱动获得"
不知是什么意思?