Для выдачи пользователю окна с запросом на повышение привилегий до администратора,
открываем Project Property, Configuration Properties, Linker, Manifest File и настраиваем
Enable User Account Control (UAC), UAC Execution Level, and UAC Bypass UI Protection properties.