Skip to content

Latest commit

 

History

History
126 lines (83 loc) · 5.09 KB

nf-winldap-ldap_create_page_control.md

File metadata and controls

126 lines (83 loc) · 5.09 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winldap.ldap_create_page_control
ldap_create_page_control function (winldap.h)
The ldap_create_page_control function (winldap.h) creates a basic control for paging results.
_ldap_ldap_create_page_control
ldap.ldap__create__page__control
ldap.ldap_create_page_control
ldap_create_page_control
ldap_create_page_control function [LDAP]
ldap_create_page_controlA
ldap_create_page_controlW
winldap/ldap_create_page_control
winldap/ldap_create_page_controlA
winldap/ldap_create_page_controlW
ldap\ldap_create_page_control.htm
ldap
b3b1f3bd-7eb3-4f76-921c-386562dae2e2
08/09/2022
_ldap_ldap_create_page_control, ldap.ldap__create__page__control, ldap.ldap_create_page_control, ldap_create_page_control, ldap_create_page_control function [LDAP], ldap_create_page_controlA, ldap_create_page_controlW, winldap/ldap_create_page_control, winldap/ldap_create_page_controlA, winldap/ldap_create_page_controlW
winldap.h
Windows
Windows Vista
Windows Server 2008
ldap_create_page_controlW (Unicode) and ldap_create_page_controlA (ANSI)
Wldap32.lib
Wldap32.dll
Windows
19H1
ldap_create_page_control
winldap/ldap_create_page_control
c++
APIRef
kbSyntax
DllExport
Wldap32.dll
ldap_create_page_control
ldap_create_page_controlA
ldap_create_page_controlW

ldap_create_page_control function

-description

Use the ldap_create_page_control function to create a basic control for paging results. Support for controls is available effective with LDAP 3, but whether the page control is supported or not is dependent on the particular server.

-parameters

-param ExternalHandle [in]

The session handle.

-param PageSize [in]

The number of entries to return in each page.

-param Cookie [in]

Pointer to a berval structure that the server uses to determine its location in the result set. This is an opaque structure that you should not access directly. Set to NULL for the first call to ldap_create_page_control.

-param IsCritical [in]

Notifies the server whether this control is critical to the search.

-param Control [out]

Pointer to the newly created control.

-returns

This function returns WINLDAPAPI ULONG LDAPAPI.

-remarks

The ldap_create_page_control function creates a simple paged-results control. The control enables the client to specify the rate at which an LDAP server returns the results of a search operation. This is useful when the client has limited resources and may not be able to process the entire result set from a given LDAP query, or when the client/server connection is slow.

To create the paged-results control, specify the number of entries to be returned in a single page. To return results normally, even if it cannot support this control, set the IsCritical parameter to FALSE.

This function creates the control - it does not verify that the server supports it, and consequently, does not return LDAP_UNAVAILABLE_CRIT_EXTENSION if the server does not support the control. However, it can return other standard LDAP return values, such as LDAP_NO_MEMORY or LDAP_PARAM_ERROR.

When ldap_create_page_control returns successfully, include the newly created control to the list of server controls in a call to ldap_search_ext or to ldap_search_ext_s. When the server returns the first page of results, call ldap_parse_result to retrieve the first page of results.

Call ldap_control_free when the control is no longer required.

-see-also

Functions

LDAP_PAGED_RESULT_OID_STRING

ldap_control_free

ldap_parse_page_control

ldap_parse_result

ldap_search_ext

ldap_search_ext_s