How can I programmatically tell in C# if an unmanaged DLL file is x86 or x64?
Using a Visual Studio command prompt, dumpbin /headers dllname.dll works too. On my machine the beginning of the output stated:
FILE HEADER VALUES 8664 machine (x64) 5 number of sections 47591774 time date stamp Fri Dec 07 03:50:44 2007