var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-333696-1']); _gaq.push(['_trackPageview']); _gaq.push(['_trackPageLoadTime']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
  • 2006年09月25日

    UAC in Windows Vista

    分类:

    A good way to pull a manifest out for reviewing is to use the mt.exe tool, distributed with the Platform SDK.
    mt.exe -inputresource:myApplication.exe -out:myApplication.exe.manifest

    A couple of things to keep in mind.
    First, in XP, external manifests (app.exe.manifest) would override internal manifests. The reverse is true in Vista.
    Second, please, please, please (that's 3 pleases) do not redeclare the default XML namespace in a LUA manifest. The following manifest will vote into the visual-styles-enabled sxs assembly as well as LUA without redeclaring the default namespace:

    CODE:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
      <assemblyIdentity type="win32" processorArchitecture="*" version="1.0.0.0" name="MyApplication.exe"/>
      <description>My totally awesome application</description>
      <dependency>
        <dependentAssembly>
          <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" language="*" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" />
        </dependentAssembly>
      </dependency>
      <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
        <ms_asmv2:security>
          <ms_asmv2:requestedPrivileges>
            <ms_asmv2:requestedExecutionLevel level="asInvoker"/>
          </ms_asmv2:requestedPrivileges>
        </ms_asmv2:security>
      </ms_asmv2:trustInfo>
    </assembly>

    Exploring Manifests Part 1: Side by Side Assemblies

    Exploring Manifests Part 2: Default Namespaces and UAC Manifests in Windows Vista

    分享到:

    历史上的今天:

    Padding Oracle安全漏洞 2010年09月25日