Deleting a Phone-Book Entry
To delete a phone-book entry the application can use the RasDeleteEntry function.
To delete a phone-book entry from the dialing list
Call RasDeleteEntry using the lpszName parameter to supply the entry to be deleted.
The return value is TRUE if successful and FALSE if not.
Deleting a Phone-Book Entry Example
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;
}
See Also
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.