Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function returns the next page in a sequence of synchronous paged search results.

Syntax

ULONG ldap_get_next_page_s(
  LDAP* 
ExternalHandle,
  LDAPSearch* 
SearchHandle,
  LDAP_TIMEVAL* 
timeout,
  ULONG 
PageSize,
  ULONG* 
TotalCount,
  LDAPMessage** 
Results
);

Parameters

ExternalHandle

[in] Session handle.

SearchHandle

[in] Handle to the search block.

timeout

[in] Length of time in seconds the client is willing to wait for the call to return.

PageSize

[in] Number of entries to return in a single page.

TotalCount

[out] Server's estimate of the total number of entries in the entire result set. A value of zero means that the server could not provide an estimate.

Results

[out] Pointer to the LDAPMessagestructure that contains the results of the operation.

Return Value

If the server returns a null cookie (noncontinuation), the value will be LDAP_NO_RESULTS_RETURNED. Otherwise, the client signals a continuation (more data available) by returning LDAP_SUCCESS.

If the function otherwise fails, it returns the error code pertinent to the failure. See the LDAP_RETCODEenumeration for a list of possible return values.

Remarks

This function is part of the interface for simple, synchronous paging of search results. Use the search handle returned from an initial call to ldap_search_init_pageand specify, in the PageSizeparameter, the number of entries to be returned in a page. Set PageSizeto 0 (zero) to abandon a search.

The results you get back from ldap_get_next_page_scan be treated as any other search result and should be freed when you are done by calling the ldap_msgfreefunction.

If you prefer to retrieve paged search result asynchronously, use ldap_get_next_page.

Using ldap_get_next_page_seliminates the need to call ldap_get_paged_countto record the number of paged results returned by a server.

Requirements

Header winldap.h
Library wldap32.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also