Packet Sniffer SDK DLL Edition

HNAdapterConfig :: Properties :: AdpCfgGetIpDnsCount

 Previous Next

Returns the number of the IP addresses of DNS servers set on the system.

Syntax:

DWORD __stdcall AdpCfgGetIpDnsCount(HANDLE hCfg);

Parameters:

hCfg

[in] HNAdapterConfig object handle.

Return values:

If the function succeeds the return value will be the number of the IP addresses of DNS servers set on the system.

Description:

Use AdpCfgGetIpDnsCount to obtain the number of the IP addresses of DNS servers, set on the system. You should to take into account this value when you call AdpCfgGetIpDns function.

See also:HNAdapterConfig, AdpCfgGetIpDns