npl77
asked on
Calling a Win DLL from C#
I am trying to call an LDAP function from the WLDAP32 dll (which I cannot add a reference to since its umanaged code). Can someone tell me how to do this. I think I have to match the parameters to an equivalent in C# here is what the C++ function looks like:
ULONG ldap_simple_bind(
__in LDAP* ld,
__in PCHAR dn,
__in PCHAR passwd
);
So how can I use the dll to call this function and use it in my C# application??
ULONG ldap_simple_bind(
__in LDAP* ld,
__in PCHAR dn,
__in PCHAR passwd
);
So how can I use the dll to call this function and use it in my C# application??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Open in new window