Platform SDK: Active Directory, ADSI, and Directory Services

ldap_count_values_len

The ldap_count_values_len function counts the number of values in a list.

ULONG ldap_count_values_len(
  struct berval** vals
);

Parameters

vals
[in] An array of values returned by ldap_get_values_len.

Return Values

If the function succeeds, it returns the number of values.

If the function fails, the return value is –1 and the function sets the sets the session error parameters in the LDAP data structure.

Remarks

The ldap_count_values_len function returns the number of binary values in an array of berval structures. To count the values in an array of character strings, call ldap_count_values.

Requirements

  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.

See Also

berval, Functions, ldap_count_values, ldap_get_values_len, LDAP