---
name: "WLDAP32_ldap_result2error"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/WLDAP32_ldap_result2error"
---

# WLDAP32\_ldap\_result2error(3w)

## NAME

**WLDAP32\_ldap\_result2error** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  WLDAP32\_ldap\_result2error\
  (\
   WLDAP32\_LDAP\*        *ld*,\
   WLDAP32\_LDAPMessage\* *res*,\
   ULONG                *free*\
  )

## DESCRIPTION

Parse an **LDAP** message and return the error obtained from it.

## PARAMS

*ld* **\[In\]**  Pointer to an **LDAP** context.

*res* **\[In\]**  Pointer to an LDAPMessage structure.

*free* **\[In\]**  Ask for the LDAPMessage structure to be freed.

## RETURNS

**Success:** **LDAP\_SUCCESS**

**Failure:** An **LDAP** error code.

## NOTES

If not asked for, use ldap\_msgfree to *free* the LDAPMessage.

## IMPLEMENTATION

Declared in **"winldap\_private.h"**.

Implemented in **"dlls/wldap32/error.c"**.
