.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH ldap_encode_sort_controlW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBldap_encode_sort_controlW\fR (WLDAP32.@) .SH SYNOPSIS ULONG CDECL ldap_encode_sort_controlW ( WLDAP32_LDAP* \fIld\fR, PLDAPSortKeyW* \fIsortkeys\fR, PLDAPControlW \fIcontrol\fR, BOOLEAN \fIcritical\fR ) .SH DESCRIPTION .PP Create a \fIcontrol\fR for server sorted search results. .SH PARAMS \fIld\fR \fB[In]\fR Pointer to an \fBLDAP\fR context. .PP sortkey \fB[In]\fR Array of LDAPSortKey structures, each specifying an attribute to use as a sort key, a matching rule and the sort order (ascending or descending). .PP \fIcritical\fR \fB[In]\fR Tells the server this \fIcontrol\fR is \fIcritical\fR to the search operation. .PP \fIcontrol\fR \fB[Out]\fR LDAPControl created. .PP .SH RETURNS .PP \fBSuccess:\fR \fBLDAP_SUCCESS\fR .PP \fBFailure:\fR An \fBLDAP\fR error code. .SH NOTES .PP This function is obsolete. Use its equivalent ldap_create_sort_control instead. .SH IMPLEMENTATION .PP Declared in \fB"winldap_private.h"\fR. .PP Implemented in \fB"dlls/wldap32/control.c"\fR.