DsUnBindA function (ntdsapi.h)
The DsUnBind function finds an RPC session with a domain controller and unbinds a handle to the directory service (DS).
Syntax
NTDSAPI DWORD DsUnBindA(
[in] HANDLE *phDS
);
Parameters
[in] 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
Remarks
Note
The ntdsapi.h header defines DsUnBind as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | ntdsapi.h |
Library | Ntdsapi.lib |
DLL | Ntdsapi.dll |