WiFi Framework C++ Edition

◆ GetCurrentIp()

int GetCurrentIp ( bool &  Static,
tstring Address,
tstring Mask,
tstring Gateway,
tstring Dns1,
tstring Dns2 
) const

Gets the current IP address of the interface.

Parameters
StaticTrue if the interface uses static IP configuration. False if the interface uses DHCP.
AddressThe current IP address.
MaskThe subnet mask.
GatewayThe default gateway address.
Dns1The first DNS server address.
Dns2The second DNS server address.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.