Wednesday, January 4, 2012

Requiring administrative access in Visual Studio 2010 C++ projects

In previous versions of Visual Studio, making any changes to the application manifest file for a C++ application required you to code one up manually, removing the advantages of the built-in manifest generation tool. However, in Visual Studio 2010, common tasks such as setting the UAC execution level are now baked into the project settings.

Below is a screenshot of how to set the execution level (requestedExecutionLevel) or UI protection (uiAccess) settings in the manifest using the project settings.


0 comments:

Post a Comment