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 |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | ldap_control_freeW (Unicode) and ldap_control_freeA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012