Platform SDK: Active Directory, ADSI, and 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

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