LdapMapErrorToWin32 function (winldap.h)

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

Syntax

WINLDAPAPI ULONG LDAPAPI LdapMapErrorToWin32(
  [in] ULONG LdapError
);

Parameters

[in] LdapError

The error code returned from an LDAP function.

Return value

Returns the corresponding Win32 error code.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header winldap.h
Library Wldap32.lib
DLL Wldap32.dll

See also

Functions

LdapGetLastError