Packet Sniffer SDK DLL Edition
HNAdapterConfig :: Methods :: AdpCfgGetIpDns | | Previous Next |
Returns one of the IP addresses of the DNS servers set on the system.
Syntax:
LPCTSTR __stdcall AdpCfgGetIpDns(HANDLE hCfg, INT Index);
Parameters:
hCfg
Index
[in] The index of the DNS server IP address. Value may be set from 0 to
AdpCfgGetIpDnsCount - 1.
Return values:
If the function succeeds, returned value will contain an IP address string. Otherwise it will contain an empty
string.
Description:
Use this function to obtain one of the IP addresses of DNS servers set on the system (e.g., 192.168.0.1).
Requirements:
Unicode
Implemented as AdpCfgGetIpDnsW (Unicode) and AdpCfgGetIpDnsA (ANSI).