Hi, On Fri, Feb 25, 2011 at 3:13 AM, Kevin Jones <[email protected]> wrote: > Is there a preferred way to test if a file has a Valid PE Header? > Currently I am attempting to load it using > AssemblyDefinition.ReadAssembly and catching the Image Format > Exception, but I was wondering if there is a "cleaner" way to do this.
I have: https://github.com/jbevain/mono.reflection/blob/master/Mono.Reflection/Image.cs It's a fast test to know if the file looks like a managed module. Jb -- -- mono-cecil
