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

# ldap\_first\_attributeW(3w)

## NAME

**ldap\_first\_attributeW** (WLDAP32.@)

## SYNOPSIS

PWCHAR CDECL  ldap\_first\_attributeW\
  (\
   WLDAP32\_LDAP\*        *ld*,\
   WLDAP32\_LDAPMessage\* *entry*,\
   WLDAP32\_BerElement\*\* *ptr*\
  )

## DESCRIPTION

Get the first attribute for a given *entry*.

## PARAMS

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

*entry* **\[In\]**  Entry to retrieve attribute for.

*ptr* **\[Out\]**  Position pointer.

## RETURNS

**Success:** Name of the first attribute.

**Failure:** **NULL**.

## NOTES

Use ldap\_memfree to free the returned string.

## IMPLEMENTATION

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

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