• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

berval structure

Started by Pierre Bellisle, October 24, 2016, 03:11:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pierre Bellisle

Hola José.

berval structure

The berval structure represents 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; //Length, in bytes, of binary data.
  PCHAR bv_val; //Pointer to the binary data.
} LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, BerValue;

3.1.07\Winldap.inc
TYPE berval DWORD
    bv_len AS DWORD     ' ULONG
    bv_val AS BYTE PTR   ' PUCHAR
END TYPE

3.1.07\WinBer.inc
TYPE berval DWORD
    bv_len AS DWORD        ' ULONG
    bv_val AS ASCIIZ PTR   ' PUCHAR
END TYPE

Pierre

José Roca

Changed it to BYTE PTR. Thanks for spotting it.

Pierre Bellisle