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') + ''; 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:

    <?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="" name="MyApplication.exe"/>
      <description>My totally awesome application</description>
          <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="" language="*" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" />
      <ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
            <ms_asmv2:requestedExecutionLevel level="asInvoker"/>

    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日