Directory Services

DsBindingSetTimeout

The DsBindingSetTimeout function sets the timeout value that is honored by all RPC calls that use the specified binding handle. RPC calls that required more time than the timeout value are canceled.

DWORD DsBindingSetTimeout(
  HANDLE hDS,
  ULONG cTimeoutSecs
);

Parameters

hDS
[in] Contains the bind handle to the directory service. To return this handle call the DsBind or DsBindWithCred function.
cTimeoutSecs
[in] Contains the new timeout value, in seconds.

Return Values

Returns ERROR_SUCCESS if successful or a Win32 or RPC error code otherwise. The following is a possible error code.
Return Code Description
ERROR_INVALID_PARAMETER hDS is invalid.

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.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.

See Also

DsBind, DsBindWithCred, Domain Controller and Replication Management Functions