Platform SDK: Active Directory, ADSI, and Directory Services |
The ldap_delete_ext_s function is an extended routine that performs a synchronous operation to remove a leaf entry from the directory tree.
ULONG ldap_delete_ext_s( LDAP* ld, PCHAR dn, PLDAPControl* ServerControls, PLDAPControl* ClientControls );
If the function succeeds, the return value is LDAP_SUCCESS.
If the function fails, it returns an error code. See Return Values for more information.
Call ldap_delete_ext_s to remove a leaf entry from the directory tree. (Note that LDAP does not support deletion of entire subtrees in a single operation.) The parameters and effects of ldap_delete_ext_s subsume those of ldap_delete_s. The extended routine includes additional parameters to support client and server controls and thread safety.
As a synchronous function, ldap_delete_ext_s returns when the delete operation is complete. Use ldap_delete or ldap_delete_ext if you want the delete operation to be carried out asynchronously.
Multithreading: Calls to ldap_delete_ext_s are thread-safe.
Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.
Unicode: Declared as Unicode and ANSI prototypes.
Functions, ldap_delete, ldap_delete_ext, ldap_delete_s, Modifying a Directory Entry, Return Values