Important:
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.
A version of this page is also available for
4/8/2010

This function counts the number of values in a list.

Syntax

ULONG ldap_count_values_len(
  struct berval** 
vals
);

Parameters

vals

[in] Array of values returned by ldap_get_values_len.

Return Value

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

If this function fails, the return value is 0.

Remarks

This function returns the number of binary values in an array of bervalstructures. To count the values in an array of character strings, call the ldap_count_valuesfunction.

Requirements

Header winldap.h
Library wldap32.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also