Platform SDK: Active Directory, ADSI, and Directory Services

ldap_count_values

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

ULONG ldap_count_values(
  PCHAR* vals
);

Parameters

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

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 function returns the number of values in an array of strings. To count binary values (in an array of berval structures) call ldap_count_values_len.

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.
  Unicode: Declared as Unicode and ANSI prototypes.

See Also

berval, Functions, ldap_count_values_len, ldap_get_values, LDAP