Directory Services

DsUnBind

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

DWORD DsUnBind(
  HANDLE* phDS
);

Parameters

phDS
[in] Pointer to a bind handle to the directory service. This handle is provided by a call to DsBind, DsBindWithCred, or DsBindWithSpn.

Return Values

NO_ERROR

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension on Windows NT 4.0 SP6a and Windows 95/98/Me.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000/XP.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.

See Also

DsBind, DsBindWithCred, DsBindWithSpn, Domain Controller and Replication Management Functions