Search code examples
c++visual-studio-2008windows-7windows-vistauac

Request administrator rights on Win Vista/7 from a c++ app


I found info on how to do it in c#, but how to make a C++ app pop-up that UAC "Run as administrator" when it is run?


Solution

  • You can set the manifest in Visual Studio in:

    Project >> Properties >> Configuration Properties >> Linker >> Manifest File >> UAC Execution Level.