DsBind (ntdsapi)
Last changed: stefan.cuypers@pandora.be-213.118.174.16

.
Summary
The DsBindWithCred function binds to a domain controller using the specified credentials.

C# Signature:

[DllImport("Ntdsapi.dll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Unicode, EntryPoint = "DsBindWithCredW", SetLastError = true)]
public static extern UInt32 DsBindWithCred(
    [MarshalAs(UnmanagedType.LPWStr)] String DomainControllerName,
    [MarshalAs(UnmanagedType.LPWStr)] String DnsDomainName,
    IntPtr AuthIdentity,
    out IntPtr hDS

);

VB Signature:

Declare Function DsBindWithCred Lib "ntdsapi.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation