DsMakePasswordCredentials (ntdsapi)
Last changed: -163.230.250.197

.
Summary
The DsMakePasswordCredentials function constructs a credential handle suitable for use with the DsBindWithCred function.

C# Signature:

[DllImport("Ntdsapi.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode,
EntryPoint = "DsMakePasswordCredentialsW", SetLastError = true)]
public static extern UInt32 DsMakePasswordCredentials(
     [MarshalAs(UnmanagedType.LPWStr)] String User,
     [MarshalAs(UnmanagedType.LPWStr)] String Domain,
     [MarshalAs(UnmanagedType.LPWStr)] String Password,
     out IntPtr AuthIdentity
);

VB Signature:

Declare Function DsMakePasswordCredentials 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