I am trying to find a programmatic way to tell if a binary is x86, x64, or ia64.
Platform: Windows. Language: c/c++.
Background: Before trying to load a thir
You can check the PE header yourself to read the IMAGE_FILE_MACHINE field. Here's a C# implementation that shouldn't be too hard to adapt to C++.
IMAGE_FILE_MACHINE