Directory Services |
The LDAPAPIInfo structure retrieves data about the API and implementations used.
typedef struct ldapapiinfo {
int ldapai_info_version;
int ldapai_api_version;
int ldapai_protocol_version;
char** ldapai_extensions;
char* ldapai_vendor_name;
int ldapai_vendor_version; } LDAPAPIInfo;
A pointer to this structure is passed with the LDAP_OPT_API_INFO session option, to ldap_get_option, in order to retrieve data about this LDAP API library. The data returned includes a list of any API extensions supported by the implementation. When the structure data is no longer required, the caller must free the individual strings and string arrays returned in this structure by using the ldap_memfree and ldap_value_free functions.
Client: Included in Windows XP and Windows 2000
Professional.
Server: Included in Windows Server 2003 family and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows Me/98/95.
Unicode: Declared as Unicode and ANSI structures.
Header: Declared in Winldap.h.
ldap_get_option, ldap_memfree, ldap_value_free, Session Options