Directory Services

berval

The berval structure is used to represent arbitrary binary data that is encoded according to Basic Encoding Rules (BER). Use a berval to represent any attribute that cannot be represented by a null-terminated string.

typedef struct berval {
ULONG bv_len;
PCHAR bv_val; } LDAP_BERVAL,
*PLDAP_BERVAL,
BERVAL,
*PBERVAL;

Members

bv_len
Length of binary data in bytes.
bv_val
A pointer to the binary data.

Remarks

Use a berval structure for attributes that contain raw binary data, such as certificates, graphics, or sound files.

Requirements

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