I'm looking for a very simple way of determining if the version of Windows the customer is using is 32bit or 64bit. I know there are ways using .NEt but I'm looking to avoid them. I simply want to use something similar the below pseudo code and want to know if this method can be reliable.
If Registry Key exists (HKEY_LOCAL_MACHINE\Software\WOW6432Node)
Then Assume 64bit
else
Assume 32bit
Thanks!
EDIT: To be more specific, I know there a several different ways to accomplish the goal of finding out if the OS is 32 or 64bit. But I want to know if the above alone method would be reliable.