### winldap.h ###

berval=struct
struct.berval=bv_len,bv_val
struct.berval.bv_len=ULONG,0,0
struct.berval.bv_val=PCHAR,4,0

LDAP_BERVAL=typedef
typedef.LDAP_BERVAL=struct berval

PLDAP_BERVAL=typedef
typedef.PLDAP_BERVAL=struct berval*

BERVAL=typedef
typedef.BERVAL=struct berval

PBERVAL=typedef
typedef.PBERVAL=struct berval*

BerValue=typedef
typedef.BerValue=struct berval

berelement=struct
struct.berelement=opaque
struct.berelement.opaque=PCHAR,0,0

BerElement=typedef
typedef.BerElement=struct berelement

l_timeval=struct
struct.l_timeval=tv_sec,tv_usec
struct.l_timeval.tv_sec=LONG,0,0
struct.l_timeval.tv_usec=LONG,4,0

LDAP_TIMEVAL=typedef
typedef.LDAP_TIMEVAL=struct l_timeval

ldap=struct
struct.ldap=Reserved,ld_host,ld_version,ld_lberoptions,ld_deref,ld_timelimit,ld_sizelimit,ld_errno,ld_matched,ld_error
struct.ldap.Reserved=char,0,76
struct.ldap.ld_host=PCHAR,76,0
struct.ldap.ld_version=ULONG,80,0
struct.ldap.ld_lberoptions=UCHAR,88,0
struct.ldap.ld_deref=int,92,0
struct.ldap.ld_timelimit=int,96,0
struct.ldap.ld_sizelimit=int,100,0
struct.ldap.ld_errno=int,104,0
struct.ldap.ld_matched=PCHAR,108,0
struct.ldap.ld_error=PCHAR,112,0

LDAP=typedef
typedef.LDAP=struct ldap

PLDAP=typedef
typedef.PLDAP=struct ldap*

PLDAP_TIMEVAL=typedef
typedef.PLDAP_TIMEVAL=LDAP_TIMEVAL*

ldapcontrolA=struct
struct.ldapcontrolA=ldctl_oid,ldctl_value,ldctl_iscritical
struct.ldapcontrolA.ldctl_oid=PCHAR,0,0
struct.ldapcontrolA.ldctl_value=struct berval,8,0
struct.ldapcontrolA.ldctl_iscritical=BOOLEAN,16,0

LDAPControlA=typedef
typedef.LDAPControlA=struct ldapcontrolA

PLDAPControlA=typedef
typedef.PLDAPControlA=struct ldapcontrolA*

ldapcontrolW=struct
struct.ldapcontrolW=ldctl_oid,ldctl_value,ldctl_iscritical
struct.ldapcontrolW.ldctl_oid=PWCHAR,0,0
struct.ldapcontrolW.ldctl_value=struct berval,8,0
struct.ldapcontrolW.ldctl_iscritical=BOOLEAN,16,0

LDAPControlW=typedef
typedef.LDAPControlW=struct ldapcontrolW

PLDAPControlW=typedef
typedef.PLDAPControlW=struct ldapcontrolW*

ldapmsg=struct
struct.ldapmsg=lm_msgid,lm_msgtype,lm_ber,lm_chain,lm_next,lm_time,Connection,Request,lm_returncode,lm_referral,lm_chased,lm_eom,ConnectionReferenced
struct.ldapmsg.lm_msgid=ULONG,0,0
struct.ldapmsg.lm_msgtype=ULONG,4,0
struct.ldapmsg.lm_ber=PVOID,8,0
struct.ldapmsg.lm_chain=struct ldapmsg*,16,0
struct.ldapmsg.lm_next=struct ldapmsg*,24,0
struct.ldapmsg.lm_time=ULONG,32,0
struct.ldapmsg.Connection=PLDAP,36,0
struct.ldapmsg.Request=PVOID,42,0
struct.ldapmsg.lm_returncode=ULONG,50,0
struct.ldapmsg.lm_referral=USHORT,54,0
struct.ldapmsg.lm_chased=BOOLEAN,56,0
struct.ldapmsg.lm_eom=BOOLEAN,60,0
struct.ldapmsg.ConnectionReferenced=BOOLEAN,64,0

LDAPMessage=typedef
typedef.LDAPMessage=struct ldapmsg

PLDAPMessage=typedef
typedef.PLDAPMessage=struct ldapmsg*

PLDAPSearch=type
type.PLDAPSearch=p

PLDAPSortKeyA=type
type.PLDAPSortKeyA=p

PLDAPSortKeyW=type
type.PLDAPSortKeyW=p

PLDAPVLVInfo=type
type.PLDAPVLVInfo=p
