Directory Services

LdapGetLastError

The LdapGetLastError function retrieves the last error code returned by an LDAP call.

ULONG LdapGetLastError(void);

Parameters

This function has no parameters.

Return Values

An LDAP error code.

Remarks

The LdapGetLastError function returns the LDAP error code for the last LDAP operation on the thread that is calling it. See Return Values for a list of possible error codes.

Multithreading: The LdapGetLastError function is thread-safe.

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, Return Values