IT-Consultant: José Roca (PBWIN 10+/PBCC 6+) (Archive only) > Windows API Headers

berval structure

(1/1)

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:
Thank you José.

Pierre

Navigation

[0] Message Index

Go to full version