----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: DeepakG_MS_WoO Message 2 in Discussion Hi Aman, What OS are you on.. if you happen to be on Windows XP/ Windows Server 2003, you could make use of the new WMI class - Win32_PingStatus. Basically you could try to connect to a specific IP on the internet (by polling say every 5 minutes depending on how granular you want your logging to be) and depending on whether you succeed or not, log if you are connected to the internet Take a look at: http://www.enterpriseitplanet.com/networking/features/article.php/1571771 For quick documentation of using WMI from .NET, take a look at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconmanagingapplicationsusingwmi.asp If you are not on XP/2003, you could use the RAS APIs to check the dial-up status. More on it at: http://www.codeproject.com/useritems/rasconnection.asp (non-managed code, so you'll need to put in bit of Interop artifice). HTH, Deepak ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
