Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ldap_result2error
Collapse the table of content
Expand the table of content

ldap_result2error function

The ldap_result2error function parses a message and returns the error code.

Syntax


ULONG ldap_result2error(
  _In_ LDAP        *ld,
  _In_ LDAPMessage *res,
  _In_ ULONG       freeit
);

Parameters

ld [in]

The session handle.

res [in]

The result of an LDAP operation, as returned by ldap_result, or one of the synchronous API operation calls.

freeit [in]

Determines whether the LDAPMessage, pointed to by the res parameter, is freed. Setting freeit to TRUE frees the message by calling the ldap_msgfree function.

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

Multithreading: Calls to ldap_result2error are thread-safe.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

See also

Functions
ldap_msgfree
ldap_result
Return Values

 

 

Show:
© 2015 Microsoft