tags:

views:

78

answers:

1

How to Achieve this in C#. thanks...

+2  A: 

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?

Dror Helper
So doesn't that make it a duplicate?
Brian Rasmussen
hi Dror,I Have already gone through the link but it is working for DLL not for libraries.Thanks.
Anjan
Hi All,I am getting exception on the below line when i am trying to find whether the lib is x86 or x64...UInt32 peHead = br.ReadUInt32();Is i need to do some chnages for the library files.
Anjan