LDAPMessage structure (winldap.h)

The LDAPMessage structure is used by an LDAP function to return results and error data.

Syntax

typedef struct ldapmsg {
  ULONG          lm_msgid;
  ULONG          lm_msgtype;
  PVOID          lm_ber;
  struct ldapmsg *lm_chain;
  struct ldapmsg *lm_next;
  ULONG          lm_time;
  PLDAP          Connection;
  PVOID          Request;
  ULONG          lm_returncode;
  USHORT         lm_referral;
  BOOLEAN        lm_chased;
  BOOLEAN        lm_eom;
  BOOLEAN        ConnectionReferenced;
} LDAPMessage, *PLDAPMessage;

Members

lm_msgid

lm_msgtype

lm_ber

lm_chain

lm_next

lm_time

Connection

Request

lm_returncode

lm_referral

lm_chased

lm_eom

ConnectionReferenced

Remarks

The LDAPMessage structure is an opaque data type returned from a server when you call a search or a traversal function. For example, after performing an asynchronous operation, ldap_result can be called to get the server LDAPMessage response. Another example is a call to ldap_search_s, which also returns an LDAPMessage.

To free the LDAPMessage structure when it is no longer required, call ldap_msgfree.

There are no client-accessible fields in this structure.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header winldap.h

See also

Data Structures

functions

ldap_count_entries

ldap_msgfree

ldap_result

ldap_search