This email address is being protected from spambots. You need JavaScript enabled to view it.

Visual 2008 - build application which requests admin rights

This is valid only for Visual Studio environment 2008 and later and for Windows systems that use UAC user access right control system (Vista, Windows 7).

Select project properties, (C++ Project), go to Linker/Manifest File and in UAC execution level choose 'requireAdministrator':

 

vs2008_uac.jpg