RasDeleteSubEntry function

The RasDeleteSubEntry function deletes the specified subentry from the specified phone-book entry.

Syntax


DWORD RasDeleteSubEntry(
  _In_ LPCTSTR lpszPhonebook,
  _In_ LPCTSTR lpszEntry,
  _In_ DWORD   dwSubEntryId
);

Parameters

lpszPhonebook [in]

Pointer to a null-terminated string that specifies the full path and file name of a phone-book (PBK) file. If this parameter is NULL, the function uses the current default phone-book file.

lpszEntry [in]

Pointer to a null-terminated string that contains the name of an existing entry from which a subentry is to be deleted.

dwSubEntryId [in]

Specifies the one-based index of the subentry.

Return value

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is one of the following error codes or a value from Routing and Remote Access Error Codes or Winerror.h.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ras.h

Library

Rasapi32.lib

DLL

Rasapi32.dll

Unicode and ANSI names

RasDeleteSubEntryW (Unicode) and RasDeleteSubEntryA (ANSI)

See also

RasDeleteEntry
RASENTRY
RASSUBENTRY

 

 

Community Additions

ADD
Show: