Directory Services


A BerElement structure is a C++ class object that performs basic encoding rules (BER) encoding.

typedef struct berElement {
PCHAR opaque; } BerElement;


Pointer to an opaque buffer. Do not attempt to access it.


This is an opaque data structure that the ldap_first_attribute function allocates and returns to indicate the current position during a traversal of an attribute list. Pass the pointer to this structure to the ldap_next_attribute function. Be aware that, when allocated by one of the two previous functions, you do not free the memory associated with this structure or its pointer when the BerElement is no longer required.

A BerElement structure can also be allocated by calling ber_alloc_t or ber_init. In such cases, free the allocated BerElement using ber_free.


Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Winldap.h.

See Also

Data Structures, ldap_first_attribute, ldap_next_attribute