in reply to PPP in Win32
I don't know if it will work, but there is a ras.h file (if i remember right) which has the C++ interface to the dial up networking making it possible to create an dial DUN files.
I implemented the RasApi once in Delphi and I'm sure you can find some more info on it on the microsoft site.
Good hunting.