CipherLab 9400 Series User Manual page 162

Hide thumbs Also See for 9400 Series:
Table of Contents

Advertisement

9400 .NET Programming
SetWlanIpInfo
Purpose
To set the IP information for wireless networking.
Syntax
int SetWlanIpInfo (WlanAdptInfo wlanAdptInfo);
Parameters
wlanAdptInfo
[in]
Example for C#
int b1 = 0;
Cipherlab.SystemAPI.Member.WlanAdptInfo setwlinfo =
new Cipherlab.SystemAPI.Member.WlanAdptInfo();
setwlinfo.fUseDHCP = 0;
setwlinfo.IPAddr = "192.168.6.153";
setwlinfo.SubnetMask = "255.255.255.0";
setwlinfo.Gateway = "192.168.6.253";
b1 = Cipherlab.SystemAPI.Member.SetWlanIpInfo(setwlinfo);
Example for VB
Dim setwlinfo As New Member.WlanAdptInfo
setwlinfo.fUseDHCP = 0
setwlinfo.IPAddr = "192.168.6.153"
setwlinfo.SubnetMask = "255.255.255.0"
setwlinfo.Gateway = "192.168.6.253"
Cipherlab.SystemAPI.Member.SetWlanIpInfo(setwlinfo)
Return Value
If successful, it returns 1.
Otherwise, it returns 0.
154
Guide
WlanAdptInfo
structure that stores the information.
Call GetErrorCode() to find the error condition encountered:
1
ERROR_NORESOURCE (Failed to get resource)

Advertisement

Table of Contents
loading

Table of Contents