Compartilhar via


ldap_msgfree (Compact 2013)

3/26/2014

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

Syntax

ULONG ldap_msgfree(
  LDAPMessage* res
);

Parameters

  • res
    [in] Result or chain of results to free.

Return Value

If this function succeeds, it returns a constant to indicate the type of message freed. The following table shows the possible return values.

Return value

LDAP_RES_ADD

LDAP_RES_BIND

LDAP_RES_COMPARE

LDAP_RES_DELETE

LDAP_RES_EXTENDED

LDAP_RES_MODDN

LDAP_RES_MODIFY

LDAP_RES_SEARCH_ENTRY

LDAP_RES_SEARCH_REFERENCE

LDAP_RES_SEARCH_RESULT

Remarks

Call this function to free the result structure pointed to by the res parameter. The return value indicates the type of result freed.

Requirements

Header

winldap.h

Library

wldap32.lib

See Also

Reference

LDAP Memory Management Functions
ldap_result