ldap_controls_freeW function (winldap.h)
The ldap_controls_free function frees an array of LDAPControl structures.
Syntax
WINLDAPAPI ULONG LDAPAPI ldap_controls_freeW(
LDAPControlW **Control
);
Parameters
Control
TBD
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
The winldap.h header defines ldap_controls_free as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | winldap.h |
Library | Wldap32.lib |
DLL | Wldap32.dll |