Export (0) Print
Expand All
Expand Minimize

ldap_controls_free function

The ldap_controls_free function frees an array of LDAPControl structures.

Syntax


ULONG ldap_controls_free(
  _In_  LDAPControl **Controls
);

Parameters

Controls [in]

The array of LDAPControl structures to free.

Return value

If the function succeeds, LDAP_SUCCESS is returned.

If the function fails, an error code is returned. For more information, see Return Values.

Remarks

Use this function to free an array of LDAPControl structures previously allocated by LDAP function calls, such as the array returned by ldap_parse_result.

Note  This function should only be used to free controls created internally by LDAP API functions. It is not used to free memory that is explicitly allocated by the user application.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

Unicode and ANSI names

ldap_controls_freeW (Unicode) and ldap_controls_freeA (ANSI)

See also

Functions
LDAPControl
ldap_parse_result
Return Values

 

 

Show:
© 2014 Microsoft