Packet Sniffer SDK DLL Edition
HNAdapterConfig :: Methods :: AdpCfgGetIpDhcp | | Previous Next |
Returns one of the IP addresses of DHCP servers set on the system.
Syntax:
LPCTSTR __stdcall AdpCfgGetIpDhcp(HANDLE hCfg, INT Index);
Parameters:
hCfg
Index
[in] The index of the DHCP server IP address. Value may be set from 0 to
AdpCfgGetIpDhcpCount - 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 DHCP servers set on the system (e.g., 192.168.0.1).
Requirements:
Unicode
Implemented as AdpCfgGetIpDhcpW (Unicode) and AdpCfgGetIpDhcpA (ANSI).