wclWiFiInterfaceGetCurrentIp Method |
Gets the current IP address of the interface.
Namespace: wclWiFiAssembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntaxpublic int GetCurrentIp(
out bool Static,
out string Address,
out string Mask,
out string Gateway,
out string Dns1,
out string Dns2
)
Public Function GetCurrentIp (
<OutAttribute> ByRef Static As Boolean,
<OutAttribute> ByRef Address As String,
<OutAttribute> ByRef Mask As String,
<OutAttribute> ByRef Gateway As String,
<OutAttribute> ByRef Dns1 As String,
<OutAttribute> ByRef Dns2 As String
) As Integer
public:
int GetCurrentIp(
[OutAttribute] bool% Static,
[OutAttribute] String^% Address,
[OutAttribute] String^% Mask,
[OutAttribute] String^% Gateway,
[OutAttribute] String^% Dns1,
[OutAttribute] String^% Dns2
)
Parameters
- Static Boolean
- True if the interface uses static IP
configuration. False if the interface uses DHCP.
- Address String
- The current IP address.
- Mask String
- The subnet mask.
- Gateway String
- The default gateway address.
- Dns1 String
- The first DNS server address.
- Dns2 String
- The second DNS server address.
Return Value
Int32 If the function succeed the return value is
WCL_E_SUCCESS. Otherwise the method returns one of
the WCL error codes.
See Also