Directory Services

ber_init

The ber_init function allocates a new BerElement structure containing the data taken from the supplied berval structure.

BerElement* ber_init(
  BERVAL* pBerVal
);

Parameters

pBerVal
[in] Pointer to the source berval structure.

Return Values

If the function succeeds, the return value is a pointer to the newly allocated BerElement structure.

If the function fails, it returns a NULL pointer.

Remarks

Call ber_free to free a BerElement structure allocated with this function.

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 Winber.h.
Library: Use Wldap32.lib.

See Also

Functions, berval, BerElement, ber_free