I need to know whether a given .exe is 32-bit or a 64-bit, before I launch it. IsWow64Process
is no use here, since there is no process yet. Is there some other API that will give me this information?
If you really only want to do this for EXEs and not DLLs, just use GetBinaryType.
Determines whether a file is an executable (.exe) file, and if so, which subsystem runs the executable file.
This post will surely help you.
Is C# related but it will give you the idea.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With