To delete a phone-book entry the application can use the RasDeleteEntry function.
The following code example shows how to delete a RAS phone-book entry from the dialing list.
BOOL DeleteRasEntry (LPTSTR lpszName)
{
DWORD dwError; // Return code from RasDeleteEntry
TCHAR szError[100]; // Buffer for error message
if (dwError = RasDeleteEntry (NULL, lpszName))
{
wsprintf (szError, TEXT("Unable to delete entry: %ld"), dwError);
return FALSE;
}
return TRUE;
}