ber_peek_tag function (winber.h)

The ber_peek_tag function returns the tag of the next element to be parsed in the supplied BerElement structure.

Syntax

WINBERAPI ULONG BERAPI ber_peek_tag(
  [in]  BerElement *pBerElement,
  [out] ULONG      *pLen
);

Parameters

[in] pBerElement

Pointer to the source BerElement structure.

[out] pLen

Returns the length of the next element to be parsed.

Return value

Returns the tag of the next element to be read in the BerElement structure. LBER_DEFAULT is returned if there is no further data to be read.

Remarks

The decoding position within the pBerElement parameter is unchanged by this call; that is, the fact that ber_peek_tag has been called does not affect future use of the BerElement structure.

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

ber_first_element

ber_next_element

ber_skip_tag