DsBindToISTGA function

The DsBindToISTG function binds to the computer that holds the Inter-Site Topology Generator (ISTG) role in the domain of the local computer.

Syntax

NTDSAPI_POSTXP DWORD DsBindToISTGA(
  LPCSTR SiteName,
  HANDLE *phDS
);

Parameters

SiteName

Pointer to a null-terminated string that contains the site name used when binding. If this parameter is NULL, the site of the nearest domain controller is used.

phDS

Address of a HANDLE value that receives the bind handle. To close this handle, call DsUnBind.

Return Value

Returns ERROR_SUCCESS if successful or a Win32 or RPC error code otherwise. The following are possible error codes.

Requirements

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header ntdsapi.h
Library Ntdsapi.lib
DLL Ntdsapi.dll

See Also

Domain Controller and Replication Management Functions

DsUnBind