Mar 8, 2011 at 5:35 PM
Edited Mar 8, 2011 at 5:36 PM
Unfortunately the Win32 API that the dialog consumes doesn't allow for that data to be returned to the DotRas API. As indicated in the RasPhoneBookDlg API and the intellisense for EntryName, it is only there to select the initial item, nothing else.
Here's an excerpt from the Win32 SDK page for the API that it consumes:
Pointer to a null-terminated string that specifies the name of the phone-book entry to highlight initially. If this parameter is NULL, or
if the specified entry does not exist, the dialog box highlights the first entry in the alphabetic list.
I can't force the API to do something it wasn't designed to do when it's outside of my control.
Edit: Just some formatting changes.