DsUnBindA function

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

Syntax

NTDSAPI DWORD DsUnBindA(
  HANDLE *phDS
);

Parameters

phDS

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

Return Value

NO_ERROR

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header ntdsapi.h
Library Ntdsapi.lib
DLL Ntdsapi.dll

See Also

Domain Controller and Replication Management Functions

DsBind

DsBindWithCred

DsBindWithSpn