The RasPhonebookDlg function displays the main Dial-Up Networking dialog box. From this modal dialog box, the user can dial, edit, or delete a selected phone-book entry, create a new phone-book entry, or specify user preferences. The RasPhonebookDlg function returns when the dialog box closes.
BOOL RasPhonebookDlg(
LPTSTR lpszPhonebook, |
// pointer to the full path and filename of the phone-book file |
LPTSTR lpszEntry, |
// pointer to the name of the phone-book entry to highlight |
LPRASPBDLG lpInfo |
// pointer to a structure that contains additional parameters |
); |
If the user selects the Dial button and the function establishes a connection, the return value is a nonzero value.
If an error occurs, or if the user selects the Close button to close the dialog box, the return value is zero. If an error occurs, the dwError member of the RASPBDLG structure returns a nonzero system error code or RAS error code.