---
name: "ldap_parse_sort_controlW"
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_sort_controlW"
---

# ldap\_parse\_sort\_controlW(3w)

## NAME

**ldap\_parse\_sort\_controlW** (WLDAP32.@)

## SYNOPSIS

ULONG CDECL  ldap\_parse\_sort\_controlW\
  (\
   WLDAP32\_LDAP\*  *ld*,\
   PLDAPControlW\* *control*,\
   ULONG\*         *result*,\
   PWCHAR\*        *attr*\
  )

## DESCRIPTION

Parse a sort *control*.

## PARAMS

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

*control* **\[In\]**  Control obtained from a *result* message.

*result* **\[Out\]**  Result code.

*attr* **\[Out\]**  Failing attribute.

## RETURNS

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

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

## NOTES

If the function fails, free the failing attribute with ldap\_memfree.

## IMPLEMENTATION

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

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