DsBindingSetTimeout function

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.

Syntax


DWORD DsBindingSetTimeout(
  _In_ HANDLE hDS,
  _In_ ULONG  cTimeoutSecs
);

Parameters

hDS [in]

Contains a directory service handle obtained from either the DSBind or DSBindWithCred function.

cTimeoutSecs [in]

Contains the new timeout value, in seconds.

Return value

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

ERROR_INVALID_PARAMETER

hDS is invalid.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Ntdsapi.h

Library

Ntdsapi.lib

DLL

Ntdsapi.dll

See also

Domain Controller and Replication Management Functions
DsBind
DsBindWithCred

 

 

Show: