다음을 통해 공유


Deleting a Phone-Book Entry (Windows CE 5.0)

Send Feedback

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

Phone-Book Operation

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.