Detect if machine is 64bit

I've heard that there is an API call that can determine this..

VB.NET:
Expand Collapse Copy
::IsWindowsWow64

It is only present in 64 bit windows but it is located in Kernal32.dll. So you could try it, you'll need to proper declaration, If you can't find an entry point in Kernal32.dll then you can assume windows is 32 bit, if the call returns without an error then 64 bit could be assumed.
 
Back
Top