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:
system("netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42");
or
CreateProcess(NULL, "netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42", NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)
and
ShellExecute(NULL, "runas", "netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42", "", NULL, SW_SHOW);
if i call in an command line, it works
netsh.exe interface ipv6 add v6v4tunnel IP6Tunnel 192.168.1.2 216.66.84.42
What can I do to run a system command from my C++ program.
Why can't I compare C++ System(), CreateProcess() and ShellExecute() with start in a normal command line?