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
Changed it to BYTE PTR. Thanks for spotting it.
Thank you José.
Pierre