title: Delphi manifest for UAC elevation in 64-bit
body: <p>What's incorrect in this manifest to run an app as Admin? It works fine with 32-bit, but used with a 64-bit exec gives an error on startup and shuts down: "The application was unable to start correctly (0xc000007b). Click OK to close the application."</p>
  
  <p><strong>EDIT: question solved and closed, for future reference:</strong></p>
  
  <p>Working manifest for both 32/64 bit, add it through Project Options/Application/Runtime Themes/Custom Manifest->pick .manifest file. Delphi XE2 resource compiler seems to mess up otherwise for some reason.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"&gt;
          &lt;dependency&gt;
                  &lt;dependentAssembly&gt;
                          &lt;assemblyIdentity
                                  type="win32"
                                  name="Microsoft.Windows.Common-Controls"
                                  version="6.0.0.0"
                                  processorArchitecture="*"
                                  publicKeyToken="6595b64144ccf1df"
                                  language="*"
                          /&gt;
                  &lt;/dependentAssembly&gt;
          &lt;/dependency&gt;
          &lt;trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"&gt;
                  &lt;security&gt;
                          &lt;requestedPrivileges&gt;
                                  &lt;requestedExecutionLevel
                                         level="requireAdministrator"
                                         uiAccess="false"/&gt;
                          &lt;/requestedPrivileges&gt;
                  &lt;/security&gt;
          &lt;/trustInfo&gt;
  &lt;/assembly&gt;
  </code></pre>