WiFi Framework C++ Edition

◆ GetIpSettings()

int GetIpSettings ( tstring Address,
tstring Mask,
tstring Gateway,
tstring Dns1,
tstring Dns2 
) const

Gets current IP settings.

Parameters
AddressThe current IP address.
MaskThe subnet mask.
GatewayThe default gateway address.
Dns1The first DNS server address.
Dns2The second DNS server address.

If the method returns WCL_E_WIFI_INTERFACE_IP_NOT_CONFIGURED then the interface uses system default settings.

Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.