I want to get all RAS connections (Dial-up, Broadband, VPN, etc.) as they appear in my "Network Connections" under "Control Panel". There are some solutions here and on the web to do this, but they are all about getting Active (connected) Connections.
How can I do this? How can I get all active and inactive RAS connections? With or without "DotRas".
There is a component as part of the DotRas SDK which handles management of the phone book entries. Keep in mind that there are two phone books in use by Windows, the one in the all users' profile and the current users' profile. So if you're trying to get a list all the entries that you'd see there, you'd need to access both phone books.
The above example is rather limited so for more complete examples check the examples included with the SDK.
For a download link to the above mentioned SDK, see the official website at: http://dotras.codeplex.com
Hope that helps!