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 retrieves an entry from a search result chain.

Syntax

LDAPMessage* ldap_next_entry(
  LDAP* 
ld,
  LDAPMessage* 
entry
);

Parameters

ld

[in] Session handle.

entry

[in] Entry returned by a previous call to ldap_first_entryor to this function.

Return Value

If this function succeeds, it returns the entry. If no entry or reference exists in the result set, it returns NULL.

If this function fails, it returns NULL and sets the session error parameters in the LDAP data structure.

Remarks

Use this function in conjunction with ldap_first_entryto step through and retrieve the list of entries from a search result chain.

You do not have to explicitly free the returned entry because it is freed when the message itself is freed.

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