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

.
Summary
The DsUnBind function finds an RPC session with a domain controller and unbinds a handle to the directory service (DS).

C# Signature:

[DllImport("ntdsapi.dll", CharSet=CharSet.Auto)]
static public extern uint DsUnBind(ref IntPtr phDS);

C# Signature:

[DllImport("Ntdsapi.dll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Unicode, EntryPoint = "DsUnBindW", SetLastError = true)]
public static extern UInt32 DsUnBind(
     IntPtr phDS
);

VB Signature:

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

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
DsUnBind on MSDN