In reply to Chris the Tall:
Which version of Visual Studio? I have only used Manifest files for UAC settings.
If you are using 2012+ you can add useful stuff like UAC control by right-clicking on your project and select Properties.
Select Linker, then Manifest File. Set UAC Execution Level to the level you want i.e. requireAdministrator.
If you are using an older version of VS, you can add the manifest file to the project properties under Manifest Tool->Input and Output->Additional Manifest Files. Here is a manifest file that we used for compatibility and UAC:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<description>My App</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" />
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!--The ID below indicates app support for Windows 8 -->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
</application>
</compatibility>
</assembly>