|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This function initiates a synchronous add operation to a tree. For an add operation to succeed, the parent of the entry being added must already exist or the parent must be empty (equal to the distinguished name of the root).
ULONG ldap_add_ext_s( LDAP* ld, UNICODE PTCHAR dn, LDAPMod* attrs, LDAPControl** ServerControls, LDAPControl** ClientControls );
[in] Session handle.
[in] Distinguished name of the entry to add.
[in] Null-terminated array of pointers to LDAPModstructures. Each structure specifies a single attribute. See the Remarks section for more information.
[in] A list of LDAP server controls.
[in] A list of client controls.
If this function succeeds, the return value is LDAP_SUCCESS.
If this function fails, it returns an error code. See the LDAP_RETCODEenumeration for a list of possible return values.
The parameters and effects of this function include those of the ldap_add_sfunction. The extended routine includes additional parameters to support client and server controls.
Before calling ldap_add_ext_s, you must create an entry by specifying its attributes in LDAPModstructures. Set the mod_opmember of the each structure to LDAP_MOD_ADD, and set the mod_typeand mod_valsmembers as appropriate for your entry.
Upon completion of the add operation, this function returns to the caller. Use the ldap_add_extfunction if you prefer to have the operation carried out asynchronously.
In a multithreading environment, calls to ldap_add_ext_sare thread-safe.
|Windows Embedded CE||Windows CE .NET 4.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|