By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,375 Members | 3,030 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,375 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
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
It is logically impossible to detect the type of a thing before it exists.
Sep 22 '06 #2

Post your reply

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