title: How to find if a native DLL file is compiled as x64 or x86?
body: <p>I want to determine if a native assembly is complied as x64 or x86 from a managed code application (<a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29" rel="noreferrer">C#</a>).</p>
  
  <p>I think it must be somewhere in the PE header since the OS loader needs to know this information, but I couldn't find it. Of course I prefer to do it in managed code, but if it necessary, I can use native C++.</p>