Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winldap.h

Library

Wldap32.lib

DLL

Wldap32.dll

See also

Functions
ldap_msgfree
ldap_result
Return Values

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.