title: Adding a wireless AccessPoint through the Smart Device Framework
body: <p>I have a couple questions:</p>
  
  <p>In general, what is the general difference between the <code>OpenNETCF.Net</code> namespace and the <code>OpenNETCF.Net.NetworkInformation</code> namespace in the Smart Device Framework? There seems to be a lot of functionality overlap between the two. Is the <code>OpenNETCF.Net</code> namespace now deprecated in favor of the NetworkInformation namespace?</p>
  
  <p>More specifically, I have a device with a wireless adapter. My goal is to be able to query nearby access points and then connect to them through my own user interface. </p>
  
  <p><code>OpenNETCF.Net.Networking.GetAdapters()[1]</code> gives me my adapter object representing the wireless adapter. Even though this is a wireless adapter, IsWireless and IsWirelessZeroConfigCompatible both return false. However, NearbyAccessPoints DOES return a list of nearby access points as you would expect a wireless adapter to do. </p>
  
  <p>I need a way to add one of the discovered access points to the PreferredAccessPoints collection. I have not found a method to accomplish this within the <code>OpenNETCF.Net</code> namespace. The only way I've found to add an AccessPoint is through the <code>AddPreferredNetwork()</code> method of the   <code>OpenNETCF.Net.NetworkInformation.WirelessZeroConfigNetworkInterface</code> class. The problem I'm having is that I've been unable to find a way to obtain a <code>WirelessZeroConfigNetworkInterface</code> object. The object returned by the <code>NetworkInterface.GetAllNetworkInterfaces()</code> method is just a plain old NetWorkInterface object, not a <code>WirelessZeroConfigNetworkInterface</code> object as I hoped. I'm sure this is probably related to the issue with IsWireless returning false in the <code>NetworkAdapter</code> object.</p>
  
  <p>Is there a way to construct the <code>WirelessZeroConfigNetworkInterface</code> object even though the framework seems to think it is not wireless? It looks like the functionality is there as demostrated by the Wireless related methods of the <code>NetworkAdapter</code> object.</p>