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