<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Managed Wifi API</title><link>http://www.codeplex.com/managedwifi/Project/ProjectRss.aspx</link><description>.NET managed wrapper around the Windows Native Wifi API.</description><item><title>New Post: connection and documentation</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=34648</link><description>&lt;div style="line-height: normal;"&gt;How to connect to the unsecure wireless network, in coding.&lt;br&gt;
&lt;br&gt;
and is there any documentation , where can i download it.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>kongae</author><pubDate>Mon, 01 Sep 2008 05:35:43 GMT</pubDate><guid isPermaLink="false">New Post: connection and documentation 20080901053543A</guid></item><item><title>New Post: Disconnect??</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=34405</link><description>&lt;div style="line-height: normal;"&gt;First... Great API!!!!&amp;nbsp; &lt;br&gt;
&lt;br&gt;
I cannot find the WlanDisconnect() function.&amp;nbsp; Was this left out or&amp;nbsp;am&amp;nbsp;I overlooking it??&amp;nbsp; Please point me in the direction of the disconnect function and a simple example of how to call it from C#.&lt;br&gt;
&lt;br&gt;
Thanks for your help....&lt;br&gt;
Wayne
&lt;/div&gt;</description><author>wayne4</author><pubDate>Wed, 27 Aug 2008 20:39:55 GMT</pubDate><guid isPermaLink="false">New Post: Disconnect?? 20080827083955P</guid></item><item><title>New Post: How to get Signal Strenght</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=32710</link><description>&lt;div style="line-height: normal;"&gt;can u please help to get the singal strength of a wireless network??&lt;br&gt;
please try to reply soon.. i need it urgent&lt;br&gt;
thanks&lt;br&gt;
&lt;/div&gt;</description><author>asifamjad</author><pubDate>Fri, 01 Aug 2008 09:04:06 GMT</pubDate><guid isPermaLink="false">New Post: How to get Signal Strenght 20080801090406A</guid></item><item><title>New Post: Example?</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=12073</link><description>&lt;div style="line-height: normal;"&gt;hi, &lt;br&gt;
&lt;br&gt;
how to retrieve the SSIDs and RSSIs from available network using Wlan.WlanBssEntry.rssi?&lt;br&gt;
I can do this using Wlan.WlanAvailableNetwork but the RSSIs are different compared to what I get using wifi scanner like wifisistr or net stumbler&lt;br&gt;
&lt;br&gt;
thanks for any help&lt;br&gt;
&lt;br&gt;
masdegan&lt;br&gt;
&lt;/div&gt;</description><author>masdegan</author><pubDate>Tue, 22 Jul 2008 06:55:31 GMT</pubDate><guid isPermaLink="false">New Post: Example? 20080722065531A</guid></item><item><title>New Post: How to get exact RSSI values in dBm?</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=27132</link><description>&lt;div style="line-height: normal;"&gt;&lt;br&gt;
&lt;div style="border-style:dotted none;border-color:rgb(170, 170, 170) -moz-use-text-color;border-width:0.1em medium;margin:1em 0em 2.5em 3em;padding:0.2em;font-style:italic"&gt;&lt;br&gt;
luren wrote:&lt;br&gt;
After consulting Microsoft, problem is now solved by using approach 2 and after updating the driver of the wireless adapter (under Vista). Mine is an Intel Pro Wireless 3945ABG.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;
hi luren,&lt;br&gt;
&lt;br&gt;
can you give me a sample code to use Wlan.WlanBssEntry.rssi?&lt;br&gt;
&lt;br&gt;
thanks a lot before&lt;br&gt;
&lt;/div&gt;</description><author>masdegan</author><pubDate>Mon, 21 Jul 2008 09:51:24 GMT</pubDate><guid isPermaLink="false">New Post: How to get exact RSSI values in dBm? 20080721095124A</guid></item><item><title>New Post: Can I use it in Mobile Project? </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=28841</link><description>&lt;div style="line-height: normal;"&gt;Hi, &lt;br&gt;
&lt;br&gt;
No. I'm looking for the library that I can use Windows Mobile 5 or 6, Nodia OS.. &lt;br&gt;
&lt;/div&gt;</description><author>michaelsync</author><pubDate>Thu, 03 Jul 2008 01:51:15 GMT</pubDate><guid isPermaLink="false">New Post: Can I use it in Mobile Project?  20080703015115A</guid></item><item><title>NEW POST: Can I use it in Mobile Project? </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=28841</link><description>&lt;div style="line-height: normal;"&gt;I have the same question too. Are you currently working on developing a library for Windows Mobile?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;/div&gt;</description><author>rkabhi</author><pubDate>Tue, 03 Jun 2008 23:20:43 GMT</pubDate><guid isPermaLink="false">NEW POST: Can I use it in Mobile Project?  20080603112043P</guid></item><item><title>NEW POST: Can I use it in Mobile Project? </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=28841</link><description>&lt;div style="line-height: normal;"&gt;Hello, &lt;br&gt;
&lt;br&gt;
Can I use this library in C# Mobile Project? &lt;br&gt;
&lt;/div&gt;</description><author>michaelsync</author><pubDate>Mon, 02 Jun 2008 07:33:13 GMT</pubDate><guid isPermaLink="false">NEW POST: Can I use it in Mobile Project?  20080602073313A</guid></item><item><title>CREATED ISSUE: Problem executing the example 17201</title><link>http://www.codeplex.com/managedwifi/WorkItem/View.aspx?WorkItemId=10151</link><description>In wlanapi.cs , the execution halted at this &amp;#40;line 634&amp;#41;.&lt;br /&gt;&lt;br /&gt;Wlan.ThrowIfError&amp;#40;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;Wlan.WlanOpenHandle&amp;#40;Wlan.WLAN_CLIENT_VERSION_XP_SP2, IntPtr.Zero, out negotiatedVersion, out clientHandle&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;</description><author>pphan</author><pubDate>Thu, 08 May 2008 17:13:02 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: Problem executing the example 17201 20080508051302P</guid></item><item><title>NEW POST: Win32Exception</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=26069</link><description>&lt;div class="wikidoc"&gt;
Me too, I have the same problem. The exception occured at:wlanapi.cs (line 634)&lt;br /&gt; &lt;br /&gt;Wlan.ThrowIfError(&lt;br /&gt;				Wlan.WlanOpenHandle(Wlan.WLAN&lt;i&gt;CLIENT&lt;/i&gt;VERSION&lt;i&gt;XP&lt;/i&gt;SP2, IntPtr.Zero, out negotiatedVersion, out clientHandle));&lt;br /&gt;
&lt;/div&gt;</description><author>pphan</author><pubDate>Thu, 08 May 2008 17:11:12 GMT</pubDate><guid isPermaLink="false">NEW POST: Win32Exception 20080508051112P</guid></item><item><title>NEW POST: How to get exact RSSI values in dBm?</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=27132</link><description>&lt;div class="wikidoc"&gt;
After consulting Microsoft, problem is now solved by using approach 2 and after updating the driver of the wireless adapter (under Vista). Mine is an Intel Pro Wireless 3945ABG.&lt;br /&gt;
&lt;/div&gt;</description><author>luren</author><pubDate>Thu, 08 May 2008 08:14:56 GMT</pubDate><guid isPermaLink="false">NEW POST: How to get exact RSSI values in dBm? 20080508081456A</guid></item><item><title>NEW POST: How to get exact RSSI values in dBm?</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=27132</link><description>&lt;div class="wikidoc"&gt;
Hi!&lt;br /&gt; &lt;br /&gt;I have tried to retrieve the exact RSSI values for each detected AP with two approaches:&lt;br /&gt; &lt;br /&gt;1. retrieving Wlan.WlanAvailableNetwork.wlanSignalQuality or  Wlan.WlanBssEntry.linkQuality and converting the percentage values into dBm based on http://msdn.microsoft.com/en-us/library/ms707403(VS.85).aspx. The results look OK but the problem is that they never go over -50. The values are also important to us if the signals are stronger than -50dBm...&lt;br /&gt; &lt;br /&gt;2. retrieving Wlan.WlanBssEntry.rssi. According to the documentation (http://msdn.microsoft.com/en-us/library/ms706839(VS.85).aspx) it looks very nice, exactly what we needed. But the values are too low to be realistic. For instance, the RSSI value of an AP placed a few meters away from my laptop is -139... My question is how I should interpret these values? I couldn't see any correlation...&lt;br /&gt; &lt;br /&gt;Could anyone help me? Thanks a lot in advance!&lt;br /&gt;
&lt;/div&gt;</description><author>luren</author><pubDate>Mon, 05 May 2008 15:26:22 GMT</pubDate><guid isPermaLink="false">NEW POST: How to get exact RSSI values in dBm? 20080505032622P</guid></item><item><title>NEW POST: How to tell if incorrect password entered for? </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=19172</link><description>&lt;div class="wikidoc"&gt;
Hi, thanks for the post, but I figured out a workaround, by checking the IP address of the network, if it was empty, then it was connecting, then if it can't connect it.  Here is a code snippet...&lt;br /&gt;using System.Net;&lt;br /&gt;using System.Net.NetworkInformation;&lt;br /&gt; &lt;br /&gt;            WlanClient.WlanInterface wlanInterface = &amp;lt;get from somewhere&amp;gt;;&lt;br /&gt; &lt;br /&gt;              // get all network interfaces on computer&lt;br /&gt;                    NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();&lt;br /&gt;                    string ipAddresses = String.Empty;&lt;br /&gt; &lt;br /&gt;                    // go through each network interface and find the one that matches this wireless interface&lt;br /&gt;                    foreach (NetworkInterface adapter in nics)&lt;br /&gt;                    {&lt;br /&gt;                        if (String.Compare(adapter.Name, wlanInterface.InterfaceName, StringComparison.OrdinalIgnoreCase) == 0)&lt;br /&gt;                        {&lt;br /&gt;                             // go through all IPs addresses in this nic...&lt;br /&gt;                            foreach (UnicastIPAddressInformation unicastIPAddress in adapter.GetIPProperties().UnicastAddresses)&lt;br /&gt;                            {&lt;br /&gt;                                string ipAddress = unicastIPAddress.Address.ToString();&lt;br /&gt;                                // there are several non-identifiable ip addresses in adapter.GetIPProperties().DnsAddresses,&lt;br /&gt;                                // so need to make a regex to get a real IP Address&lt;br /&gt;                                if (System.Text.RegularExpressions.Regex.Match(ipAddress, @&amp;quot;(\d{1,3}\.){3}\d{1,3}&amp;quot;).Success)&lt;br /&gt;                                {&lt;br /&gt;                                    if (!String.IsNullOrEmpty(ipAddresses))&lt;br /&gt;                                        ipAddresses += &amp;quot;, &amp;quot;;&lt;br /&gt;                                    ipAddresses += ipAddress;&lt;br /&gt;                                }&lt;br /&gt;                            }&lt;br /&gt;                        }&lt;br /&gt;                    }&lt;br /&gt;                    if (String.IsNullOrEmpty(ipAddresses))&lt;br /&gt;                        ipAddresses = &amp;quot;Acquiring IP Address&amp;quot;;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>danblanchard</author><pubDate>Thu, 24 Apr 2008 17:52:31 GMT</pubDate><guid isPermaLink="false">NEW POST: How to tell if incorrect password entered for?  20080424055231P</guid></item><item><title>NEW POST: Win32Exception</title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=26069</link><description>&lt;div class="wikidoc"&gt;
Hi everyone,&lt;br /&gt; &lt;br /&gt;I try to execute the sample code but I got the following thrown exception : &lt;br /&gt;System.ComponentModel.Win32Exception in the GetAvailableNetworkList function (line 277 of Wlanapi.cs).&lt;br /&gt;I got to program an ad hoc network utility and I need it to work :s&lt;br /&gt;Thanks in advance&lt;br /&gt;Valistar.&lt;br /&gt;
&lt;/div&gt;</description><author>Valistar</author><pubDate>Wed, 16 Apr 2008 21:41:15 GMT</pubDate><guid isPermaLink="false">NEW POST: Win32Exception 20080416094115P</guid></item><item><title>CREATED ISSUE: how to use GetNetworkBssList function?</title><link>http://www.codeplex.com/managedwifi/WorkItem/View.aspx?WorkItemId=9885</link><description>I&amp;#39; am use GetNetworkBssList return error.&lt;br /&gt;</description><author>pigvip</author><pubDate>Thu, 03 Apr 2008 15:32:55 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: how to use GetNetworkBssList function? 20080403033255P</guid></item><item><title>NEW POST: How to tell if incorrect password entered for? </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=19172</link><description>&lt;div class="wikidoc"&gt;
I doesn't seem to me like the API provides any orderly way of knowing about an incorrect key, probably because the underlying 802.11 protocol provides no such notification either. The &amp;quot;password&amp;quot; is called a key: if you choose the right key, your packets are accepted by the AP - otherwise, they're dropped. Similarly, if you choose the right key, you could decrypt the packets. Otherwise, you have no way of even knowing who those encrypted packets belong to.&lt;br /&gt; &lt;br /&gt;I'm not saying this from being familiar with the protocol, but just from extrapolation on the way it behaves (e.g. you enter a wrong key in the GUI tools and you're not notified about it -- you simply have 0 received packets).&lt;br /&gt;
&lt;/div&gt;</description><author>ikonst</author><pubDate>Fri, 28 Mar 2008 14:07:36 GMT</pubDate><guid isPermaLink="false">NEW POST: How to tell if incorrect password entered for?  20080328020736P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/managedwifi/Wiki/View.aspx?title=Home&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
This project is a .NET class library allowing you to control Wifi (802.11) network adapters installed in your Windows machine programmatically.&lt;br /&gt; &lt;br /&gt;The library uses the &lt;a href="http://msdn2.microsoft.com/en-us/library/ms705969.aspx" class="externalLink"&gt;Native Wifi API&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;, available since Windows Vista and Windows XP SP2 (in a limited fashion, and only after applying a hotfix provided in &lt;a href="http://support.microsoft.com/kb/918997" class="externalLink"&gt;KB article 918997&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;). Older versions of Windows are not supported.&lt;br /&gt; &lt;br /&gt;You can find sample code in the &lt;a href="http://www.codeplex.com/managedwifi/SourceControl/DirectoryView.aspx?SourcePath=%24%2fmanagedwifi%2fWifiExample&amp;amp;changeSetId=17201" class="externalLink"&gt;WifiExample directory&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;This code was developed as part of our work at &lt;a href="http://www.monfort.co.il" class="externalLink"&gt;Monfort Software Engineering&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;
&lt;/div&gt;</description><author>ikonst</author><pubDate>Fri, 28 Mar 2008 13:51:52 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080328015152P</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/managedwifi/SourceControl/ListDownloadableCommits.aspx</link><description>Adding example code.</description><author>ikonst</author><pubDate>Fri, 28 Mar 2008 13:48:32 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080328014832P</guid></item><item><title>NEW POST: Retrieve MAC of all access points available  </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=17852</link><description>&lt;div class="wikidoc"&gt;
you welcome.&lt;br /&gt; &lt;br /&gt;you right about vista, but that method work in windows XP professional with service pack 2 and KB918997 update, some time you need also msxml6.msi.&lt;br /&gt; &lt;br /&gt;this and example to use native wifi and get all ap's info.&lt;br /&gt; &lt;br /&gt;        /// Wlan API client.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private WlanClient wlanClient;&lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Wireless interface.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private WlanClient.WlanInterface wlanInterface;&lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Wireless interface list.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private WlanClient.WlanInterface[] wlanInterfaces;&lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Available networks lists.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private Wlan.WlanAvailableNetwork[] availableNets;&lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Access Point list.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private ArrayList aps;&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Search for available access points.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        public void scanAps()&lt;br /&gt;        {&lt;br /&gt;            if (wlanInterfaces.Length != 0)&lt;br /&gt;            {&lt;br /&gt;                wlanInterface.Scan();&lt;br /&gt;                availableNets = wlanInterface.GetAvailableNetworkList(&lt;br /&gt;                    Wlan.WlanGetAvailableNetworkFlags.IncludeAllAdhocProfiles);&lt;br /&gt; &lt;br /&gt;                updateAPsList();&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Get access point recieved signal.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        /// &amp;lt;param name=&amp;quot;index&amp;quot;&amp;gt;AP index in array&amp;lt;/param&amp;gt;&lt;br /&gt;        /// &amp;lt;returns&amp;gt;Recieved Signal&amp;lt;/returns&amp;gt;&lt;br /&gt;        private int getApRS(int index)&lt;br /&gt;        {&lt;br /&gt;            return (int)availableNets&lt;a href="http://www.codeplex.com/managedwifi/Wiki/View.aspx?title=index"&gt;index&lt;/a&gt;.wlanSignalQuality;&lt;br /&gt;        }&lt;br /&gt; &lt;br /&gt;        /// &amp;lt;summary&amp;gt;&lt;br /&gt;        /// Add new access points to array list, and update&lt;br /&gt;        /// recieved signal in old access points in the array.&lt;br /&gt;        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;        private void updateAPsList()&lt;br /&gt;        {&lt;br /&gt;            if (aps.Count == 0)&lt;br /&gt;            {&lt;br /&gt;                for (int i = 0; i &amp;lt; availableNets.Length; i++)&lt;br /&gt;                {&lt;br /&gt;                    addAP(i);&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                foreach (AP ap in aps)&lt;br /&gt;                {&lt;br /&gt;                    ap.RS = 0;&lt;br /&gt;                }&lt;br /&gt;                for (int i = 0; i &amp;lt; availableNets.Length; i++)&lt;br /&gt;                {&lt;br /&gt;                    bool newAP = true;&lt;br /&gt;                   &lt;br /&gt;                    foreach (AP ap in aps)&lt;br /&gt;                    {&lt;br /&gt;                        if (ap.SSID.Equals(getApSSID(i)))&lt;br /&gt;                        {&lt;br /&gt;                            updateAPRS(i);&lt;br /&gt;                            newAP = false;&lt;br /&gt;                        }                        &lt;br /&gt;                    }&lt;br /&gt;                    if (newAP)&lt;br /&gt;                    {&lt;br /&gt;                        addAP(i);&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt; &lt;br /&gt;        }&lt;br /&gt;
&lt;/div&gt;</description><author>cbrotas</author><pubDate>Thu, 31 Jan 2008 12:05:08 GMT</pubDate><guid isPermaLink="false">NEW POST: Retrieve MAC of all access points available   20080131120508P</guid></item><item><title>NEW POST: Retrieve MAC of all access points available  </title><link>http://www.codeplex.com/managedwifi/Thread/View.aspx?ThreadId=17852</link><description>&lt;div class="wikidoc"&gt;
First i want to thank with qucik replies. Yes i have a look on the native wifi library of windows but when i am trying to use public Wlan.WlanBssEntry[] GetNetworkBssList() method of this API, i get a &amp;quot;The request not supported&amp;quot; exception in the Wlan.WlanGetNetworkBssList row. In many forums it is declared that this action is supported for Windows vista platform? &lt;br /&gt; &lt;br /&gt;First question is, am i using the right method to find Mac's of ap's? And the second is, using vista will resolve my problem?&lt;br /&gt;
&lt;/div&gt;</description><author>nsekkeli</author><pubDate>Thu, 31 Jan 2008 07:19:34 GMT</pubDate><guid isPermaLink="false">NEW POST: Retrieve MAC of all access points available   20080131071934A</guid></item></channel></rss>