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

# ldap\_searchW(3w)

## NAME

**ldap\_searchW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_searchW\
  (\
   WLDAP32\_LDAP\* *ld*,\
   PWCHAR        *base*,\
   ULONG         *scope*,\
   PWCHAR        *filter*, PWCHAR attrs\[\]  ULONG         *attrsonly*\
  )

## DESCRIPTION

Search a directory tree (asynchronous operation).

## PARAMS

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

*base* **\[In\]**  Starting point for the search.

*scope* **\[In\]**  Search *scope*. One of **LDAP\_SCOPE\_BASE**, **LDAP\_SCOPE\_ONELEVEL** and **LDAP\_SCOPE\_SUBTREE**.

*filter* **\[In\]**  Search *filter*.

attrs **\[In\]**  Attributes to return.

*attrsonly* **\[In\]**  Return no values, only attributes.

## RETURNS

**Success:** Message Id of the search operation.

**Failure:** ~0u.

## NOTES

Call ldap\_result with the message Id to get the result of the operation. Cancel the operation by calling ldap\_abandon with the message **ID**.

## IMPLEMENTATION

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

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