title: Find what is the channel using Windows API
body: <p>I am trying to get the Channel using the windows API. So far, I have tried to use the wlan_intf_opcode_channel_number with the WlanQueryInterface function. 
  I am not too sure what the reply means on that thread and was hoping someone could clarify.</p>
  
  <pre><code>ULONG channel = 0;
  DWORD dwSizeChannel = sizeof(channel);
  
  dwResult = WlanQueryInterface(
      hClient, 
      InterfaceGuid, 
      wlan_intf_opcode_channel_number, 
      NULL, 
      &amp;dwSizeChannel, 
      (PVOID*)&amp;channel, 
      NULL);
  </code></pre>
  
  <p>I am not sure what to do after here. Any help would be appreciated!
  After checking i found out that i always get the same value as channel has befor calling the WlanQueryInterface</p>