I need get it independent if the network connection is active or not.
I need get only dial up connection.
in this picture Claro is default netowork connection name.

Have no idea how do this. I hope this is clear. Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To find the currently selected default connection for connecting to the internet, which can be set in a couple of ways, you need to read the registry key HKCU\RemoteAccess InternetProfile. This will contain the name of the adapter.
Now the fun part: you will need to use DotRas.
Once you have this downloaded, installed, and reference in your project, you can use code similar to the following: