Directory Services

LdapMapErrorToWin32

The LdapMapErrorToWin32 function translates an LdapError value to the closest Win32 error code.

ULONG LdapMapErrorToWin32(
  ULONG LdapError
);

Parameters

LdapError
[in] The error code returned from an LDAP function.

Return Values

Returns the corresponding Win32 error code.

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, LdapGetLastError