title: connect to a wifi network with wlantool.exe in Compact 7 failed with 1814 error code
body: <p>From my command prompt in Compact 7 I try to execute something like this:</p>
  
  <p>wlantool -c -ssid name -auth wpa2psk -encr aes -key mypassword</p>
  
  <p>I get this error:
  [WLANTOOL] WlanReasonCodeToString() FAILED error: 1814</p>
  
  <p>Same command was working for almost 1 month and suddenly it's returning this error.</p>
  
  <ul>
  <li>Network name (SSID): name</li>
  <li>Encryption: AES</li>
  <li>Authentication: WPA2-PSK</li>
  <li>Network key: mypassword</li>
  </ul>
  
  <p>What am I doing wrong in my command promt above? And how do I find out what error 1814 is?</p>
  
  <p>I want to call the command line tool wlantool.exe from a C# program to let the user handle wifi-connections from within my app.</p>
  
  <p>c++ Code of WLANTOOL</p>
  
  <pre><code>DWORD dwFlags = 0;
      BOOL bOverwrite = TRUE;
      DWORD dwReasonCode = WLAN_REASON_CODE_UNKNOWN;
      dwError = WlanSetProfile(*phClientHandle, 
                               &amp;pInterface-&gt;InterfaceGuid, 
                               0,
                               bstrXml,
                               NULL,
                               bOverwrite, 
                               NULL, 
                               &amp;dwReasonCode);
      if(ERROR_SUCCESS != dwError)
      {
          WCHAR strMeaning[MAX_PATH];
          DWORD dwEr = ERROR_SUCCESS;
  
          strMeaning[0] = L'\0';
  
          dwEr = WlanReasonCodeToString(dwReasonCode,
                                        MAX_PATH,
                                        strMeaning,
                                        NULL);
          if(ERROR_SUCCESS != dwEr )
          {
              PrintMsg(L"WlanReasonCodeToString() FAILED error: %lu",dwEr);
              break;
          }
  
  
          PrintMsg(L"WlanSetProfile() FAILED Error: %lu dwReasonCode : %lu Meaning : %s,",
                   dwError,
                   dwReasonCode,
                   strMeaning);
          break;
      }
  </code></pre>