By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,084 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,084 IT Pros & Developers. It's quick & easy.

How te detect kind of internet connection befor having a connection, using VC++.Net

P: 3

I am trying to write a windows service in VC++.NET 2003, the task of
this server is to detect the kind of internet connection and if there
is a connection send some file and do something.

I have found a method calls InternetGetConnectedState() in .net, this
returns false or true for connection also this one has flags and you
can use them to know what kind of connection machine uses.
But here is my problem: suppose you don't have connection and you
want to know first what kind of connection you have on your machine (I want to know,Whether or not my machine has modem or it use Lan connection )and
after that try to make connection to internet!!!

Is there a method or function in .NET that I can use it to detect the
kind of connection that I can make a connection to internet?

I couldn't find anything to do this! can anyone please help me?
I am using VC++.Net 2003.

Thank you in advance

Sep 22 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.