Winston tried the tip in windows 8 + metro and it worked

On Thursday, 24 May 2012 01:09:49 UTC+10, Jb Evain wrote:
>
> Should be fixed in 4e0cec75888fb06b81b68e9cd59fe3a47944cca5. 
>
> On Wed, May 23, 2012 at 5:39 AM, Simon <[email protected]> wrote: 
> > some more light reading 
> > 
> > 
> http://recxltd.blogspot.com.au/2012/03/windows-8-app-container-security-notes.html
>  
> > 
> http://blogs.technet.com/b/softienerd/archive/2012/03/09/changing-executable-dll-characteristics-flags-dynamicbase-nx-appcontainer.aspx
>  
> > 
> > 
> > On Tuesday, 22 May 2012 21:35:02 UTC+10, Simon wrote: 
> >> 
> >> JB 
> >> 
> >> so it looks MS has changed a reserved value in 
> >> the DLLCHARACTERISTICS headers. So it is now used. 
> >> 
> >> So the header is 
> >> here 
> http://msdn.microsoft.com/en-us/library/windows/desktop/ms680339(v=vs.85).aspx
>  
> >> 
> >> From the VS11 SDK headers 
> >> \Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h 
> >> this is the value 
> >> #define IMAGE_DLLCHARACTERISTICS_APPCONTAINER 0x1000     // Image 
> should 
> >> execute in an AppContainer 
> >> 
> >> 
> >> So to get it working on Metro I took a guess and I hacked 
> >> cecil\Mono.Cecil.PE\ImageWriter.cs 
> >> 
> >> changed line 270 
> >> from 
> >>      WriteUInt16 (0x8540); 
> >> to 
> >>      WriteUInt16(0x9560); 
> >> I can only assume that for all previous versions of .net had this hard 
> >> coded. 
> >> 
> >> This seems to fix the issue for the guys. 
> > 
> > -- 
> > -- 
> > mono-cecil 
>

-- 
--
mono-cecil

Reply via email to