Reputation: 219
How can I programmatically tell in C# if an unmanaged lib is x86 or x64?
Upvotes: 2
Views: 213
Reputation: 30819
Unless you get a better solution - run Corflags using Process.Start
and parse the output.
Or better yet - read the file header from .NET - luckily a this question already been answered: How to find if native dll is compiled as x64 or x86?
Upvotes: 2