ShellExecute(NULL, "open", "C:\\test.exe", NULL, NULL, SW_SHOWDEFAULT); 

Opens without rights.

  • Instead of "open" use "runas" - VTT
  • @VTT did not help. - Denis Frolov
  • What does "not help" mean? This is the right way - VTT
  • @VTT still runs without rights. - Denis Frolov
  • And there is no dialogue UAC asking about running with administrator privileges? - VTT

0