I have a support environment where we connect to many of our customers' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN connection on their workstation. Is there a way to programmatically create the VPN connection?
Check out the DotRas project on CodePlex, the RasPhoneBook component has full support over managing phone books used by Windows.
http://www.codeplex.com/DotRas
It'll be a lot easier than working with the APIs directly, that much I can guarantee. :)