Compartilhar via


ldap_delete_s (Windows CE 5.0)

Send Feedback

This function is a synchronous operation that removes a leaf entry from the directory tree.

ULONG ldap_delete_s(LDAP* ld,UNICODE PTCHARdn);

Parameters

  • ld
    [in] Session handle.
  • dn
    [in] Distinguished name of the entry to delete.

Return Values

If this function succeeds, the return value is LDAP_SUCCESS.

If this function fails, it returns an error code. See the LDAP_RETCODE enumeration for a list of possible return values.

Remarks

Call this function to remove a leaf entry from the directory tree.

Note   Note that LDAP does not support deletion of entire subtrees in a single operation.

As a synchronous operation, this function does not return until the operation is complete. Use ldap_delete or ldap_delete_ext if you want the delete operation to be carried out asynchronously.

In a multithreading environment, calls to ldap_delete_s are thread-safe.

When connecting to an LDAP 2 server, the application must perform a bind operation (by calling one of the ldap_bind or ldap_simple_bind routines) before attempting any other operations.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winldap.h.
Link Library: Wldap32.lib.

See Also

LDAP_RETCODE | ldap_bind | ldap_delete | ldap_delete_ext | ldap_simple_bind

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.