---
name: "WLDAP32_ldap_result"
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_result"
---

# WLDAP32\_ldap\_result(3w)

## NAME

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

## SYNOPSIS

ULONG CDECL  WLDAP32\_ldap\_result\
  (\
   WLDAP32\_LDAP\*         *ld*,\
   ULONG                 *msgid*,\
   ULONG                 *all*,\
   struct l\_timeval\*     *timeout*,\
   WLDAP32\_LDAPMessage\*\* *res*\
  )

## DESCRIPTION

Get the result of an asynchronous operation.

## PARAMS

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

*msgid* **\[In\]**  Message Id of the operation.

*all* **\[In\]**  How many results should be returned?.

*timeout* **\[In\]**  How long to wait for the results?.

*res* **\[Out\]**  Result message for the operation.

## RETURNS

**Success:** One of the following values:

**LDAP\_RES\_ADD** **LDAP\_RES\_BIND** **LDAP\_RES\_COMPARE** **LDAP\_RES\_DELETE** **LDAP\_RES\_EXTENDED** **LDAP\_RES\_MODIFY** **LDAP\_RES\_MODRDN** **LDAP\_RES\_REFERRAL** **LDAP\_RES\_SEARCH\_ENTRY** **LDAP\_RES\_SEARCH\_RESULT**.

**Failure:** ~0u.

This function returns **0** when the *timeout* has expired.

## NOTES

A **NULL** *timeout* pointer causes the function to block waiting for results to arrive. A *timeout* value of **0** causes the function to immediately return any available results. Free returned results with ldap\_msgfree.

## IMPLEMENTATION

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

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