Directory Services

ldap_msgfree

The ldap_msgfree function frees the results obtained from a previous call to ldap_result, or to one of the synchronous search routines.

ULONG ldap_msgfree(
  LDAPMessage* res
);

Parameters

res
[in] The result, or chain of results, to free.

Return Values

Returns LDAP_SUCCESS.

Remarks

Call ldap_msgfree to free the result structure pointed to by the res parameter.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.
Library: Use Wldap32.lib.

See Also

Functions, ldap_result, ldap_search_s, ldap_search_st, ldap_search_ext_s