ldap_cleanup function (winldap.h)
Warning
The ldap_cleanup function may cause unpredictable behavior at DLL unload time so, there is no way to safely clean up resources when dynamically loading and unloading the wldap32.dll.
Because of this, resource leaks can occur on unload of the library. Use of ldap_cleanup is therefore not recommended and, is at your own risk.
Syntax
WINLDAPAPI ULONG LDAPAPI ldap_cleanup(
HANDLE hInstance
);
Parameters
hInstance
This parameter is ignored.
Return value
If the function succeeds, the return value is LDAP_SUCCESS.
If the function fails, it returns an error code. For more information, see Return Values.
Remarks
Warning The ldap_cleanup function may cause
unpredictable behavior at the DLL unload time. Use is not recommended and is at your own risk.
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 |