Platform SDK: Active Directory, ADSI, and Directory Services

ldap_controls_free

The ldap_controls_free function frees an array of LDAPControl structures.

ULONG ldap_controls_free (
  LDAPControl** Controls
);

Parameters

Controls
[in] The array of LDAPControl structures 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.

Remarks

Use the ldap_controls_free function to dispose of a previously allocated array of LDAPControl structures.

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, LDAPControl, Return Values