Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ldap_control_free function

The ldap_control_free function frees an LDAPControl structure.

Syntax


ULONG ldap_control_free(
  _In_  LDAPControl *Control
);

Parameters

Control [in]

The LDAPControl structure 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 LDAPControl structure previously allocated by an LDAP function call, such as one allocated by a call to ldap_create_page_control or ldap_create_vlv_control.

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

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

Unicode and ANSI names

ldap_control_freeW (Unicode) and ldap_control_freeA (ANSI)

See also

Functions
LDAPControl
ldap_create_page_control
ldap_create_vlv_control
Return Values

 

 

Show:
© 2014 Microsoft. All rights reserved.