title: C++ command line "Operation not allowed in WOW64"
body: <p>I try to call a system program from my C++ program, with administrator, but i get only this message "Operation not allowed in WOW64".
  I have tried the following codes:</p>
  
  <pre><code>system("netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>CreateProcess(NULL, "netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42", NULL, NULL, TRUE, 0, NULL, NULL, &amp;info, &amp;processInfo)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>ShellExecute(NULL, "runas", "netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42", "", NULL, SW_SHOW);
  </code></pre>
  
  <p>if i call in an command line, it works</p>
  
  <blockquote>
    <p>netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2
    216.66.84.42</p>
  </blockquote>
  
  <p>What can I do to run a system command from my C++ program.</p>
  
  <p>Why can't I compare C++ System(), CreateProcess() and ShellExecute() with start in a normal command line?</p>