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

ldap_err2string function

The ldap_err2string function converts a numeric LDAP error code into a null-terminated character string that describes the error.

Syntax


PCHAR ldap_err2string(
  _In_  ULONG err
);

Parameters

err [in]

An LDAP error code as returned by another LDAP function.

Return value

If the function succeeds, a pointer to a null-terminated character string that describes the error, is returned.

If the function fails, a pointer to NULL is returned.

Remarks

Call ldap_err2string to convert any numeric LDAP error code into an informative, null-terminated character string message that describes the error. Be aware that some of the asynchronous calls return -1. In this case, use LdapGetLastError to retrieve the LDAP error code, and then use ldap_err2string on that value.

The return value is a static pointer to the character string. Do not free this string.

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

Unicode and ANSI names

ldap_err2stringW (Unicode) and ldap_err2stringA (ANSI)

See also

Functions
Return Values

 

 

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