المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get local area connection status by CSharp?(Win 7 OS) [modified]



C# Programming
01-30-2010, 09:01 AM
U can open a dialog by following way(Win7 OS):
Control Panel\All Control Panel Items--Network and Sharing Center
bellow View your active networks
CLICK Connections:local area connection ,you can see a window about local area connection status.

I want to get information on this window,such as
General-Connection-
IPV4 Connectivity : Internet
IPV6 Connectivity : No network access

Thanks very much!
-------------------------------------------------------------
i find that IPV4 Connectivity value is a best way to detect the availability of Internet.Using Ping Ip or get request from server is NOT a reliable way.

modified on Thursday, January 28, 2010 8:36 PM