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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Open in new window