troubleshooting Question

Calling a Win DLL from C#

Avatar of npl77
npl77 asked on
C#
2 Comments1 Solution400 ViewsLast Modified:
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??
ASKER CERTIFIED SOLUTION
Jaime Olivares
Software Architect
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros