Platform SDK: Active Directory, ADSI, and Directory Services

ldap_check_filter

Use the ldap_check_filter function to check filter syntax.

ULONG ldap_check_filter(
  LDAP* ld,
  PWCHAR SearchFilter
);

Parameters

ld
[in] The session handle.
SearchFilter
[in] The name of the filter to check.

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.

Remarks

Use ldap_check_filter to check the syntax of a search filter before initiating a search.

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

Functions, ldap_search, Return Values