ldap_modify_s (Windows CE 5.0)

Send Feedback

This function changes an existing entry.

ULONG ldap_modify_s(LDAP* ld,UNICODE PTCHARdn,LDAPMod* mods[]);

Parameters

  • ld
    [in] Session handle.
  • dn
    [in] Name of the entry to modify.
  • mods
    [in] Null-terminated array of modifications to make to the entry.

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

This function initiates a synchronous operation to modify an existing entry. If values are being added to or replaced in the entry, the function creates the attribute, if necessary. If values are being deleted, the function removes the attribute if no values remain. All modifications are performed in the order in which they are listed.

In a multithreading environment, calls to this function 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_modify | ldap_modify_ext | ldap_result

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.