Creates and encodes a server-side virtual list view control to use with a search operation.
#include <ldap.h>
int ldap_create_vlv_control (
LDAP *ld,
LDAPVLVInfo *vlvinfop,
LDAPControl **ctrlp);
(IN) Points to the handle of the LDAP session.
(IN) Points to an LDAPVLVInfo structure that contains the information required to create a virtual list view control.
(OUT) Points to the address of the LDAPControl structure that contains the virtual list view control created by this function. When this control is no longer in use, the memory should be freed by calling the ldap_control_free function.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. See |
The virtual list view control must be used with the server-side sort control. The virtual list view control has been assigned the following OID:
For example code, see vlvcntl.c.