Internet Connection!
-
Hi I want write a program that compute the time of connecting to internet .(like the dial_up connetcion notify icon in windows ) i want the connection property too like connection speed . can anyone halp me ? Regards' Amir jalaly
-
Hi I want write a program that compute the time of connecting to internet .(like the dial_up connetcion notify icon in windows ) i want the connection property too like connection speed . can anyone halp me ? Regards' Amir jalaly
Use a simple API function InternetGetConnectedState, to return a boolean variable. using System ; 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 ) ; } } blank