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

# ldap\_parse\_resultW(3w)

## NAME

**ldap\_parse\_resultW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_parse\_resultW\
  (\
   WLDAP32\_LDAP\*        *ld*,\
   WLDAP32\_LDAPMessage\* *result*,\
   ULONG\*               *retcode*,\
   PWCHAR\*              *matched*,\
   PWCHAR\*              *error*,\
   PWCHAR\*\*             *referrals*,\
   PLDAPControlW\*\*      *serverctrls*,\
   BOOLEAN              *free*\
  )

## DESCRIPTION

Parse a *result* message.

## PARAMS

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

*result* **\[In\]**  Result message.

*retcode* **\[Out\]**  Return code for the server operation.

*matched* **\[Out\]**  DNs *matched* in the operation.

*error* **\[Out\]**  Error message for the operation.

*referrals* **\[Out\]**  Referrals found in the *result* message.

*serverctrls* **\[Out\]**  Controls used in the operation.

*free* **\[In\]**  Free the *result* message?.

## RETURNS

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

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

## NOTES

Free the DNs and *error* message with ldap\_memfree. Free the *referrals* with ldap\_value\_free and the controls with ldap\_controls\_free. Pass a nonzero value for 'free' or call ldap\_msgfree to *free* the *result* message.

## IMPLEMENTATION

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

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