DnsGetTimeout Function  
 
INT WINAPI DnsGetTimeout(
  HCLIENT hClient  
);

The DnsGetTimeout function returns the timeout value for the current client session.

Parameters

hClient
Handle to the client session.

Return Value

If the function succeeds, the return value is the timeout period. If the function fails, the return value is DNS_ERROR. To get extended error information, call DnsGetLastError.

Remarks

The timeout value determines the amount of time the client will wait for a response from each query, the effective amount of time the client will wait increases with each nameserver and the total number of retries specified. For example, two nameservers registered with the client, with a default of 4 retries per nameserver and a timeout value of 10 seconds, would cause the client to wait a total of 80 seconds until it returns an error indicating that it was unable to resolve the query.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csdnsv11.lib

See Also

DnsGetRetryCount, DnsSetRetryCount, DnsSetTimeout