Directory Services


The ldap_value_free_len frees berval structures that were returned by ldap_get_values_len.

ULONG ldap_value_free_len(
  struct berval** vals


[in] The structure to free.

Return Values

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_value_free_len to free berval structures returned by ldap_get_values_len.


Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.

See Also

berval, Functions, ldap_get_values_len, Return Values