Platform SDK: Active Directory, ADSI, and Directory Services

LdapGetLastError

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

ULONG LdapGetLastError( VOID );

Return Values

A Win32 error code.

Remarks

The LdapGetLastError function translates the last LDAP error into the nearest Win32 error code.

Multithreading: The LdapGetLastError function is thread-safe.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP4 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Winldap.h.
  Library: Use Wldap32.lib.

See Also

Functions, Return Values