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':
