ber_flatten function (winber.h)

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

Syntax

WINBERAPI INT BERAPI ber_flatten(
  [in]  BerElement *pBerElement,
  [out] PBERVAL    *pBerVal
);

Parameters

[in] pBerElement

Pointer to the source BerElement structure.

[out] pBerVal

Pointer to the newly allocated berval structure, which should be freed using ber_bvfree.

Return value

The function returns 0 on success and -1 on failure.

Remarks

The use of ber_flatten on a BerElement in which all { and } format modifiers have not been properly matched will cause the function to return an error.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header winber.h
Library Wldap32.lib
DLL Wldap32.dll

See also

BerElement

Functions

ber_bvfree

ber_init

berval